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