Remove ‘b’ character do in front of a string literal in Python 3 [duplicate] December 24, 2022 by Tarik This should do the trick: pw_bytes.decode("utf-8")