Python bytes/bytearray to String

June 6, 2019
b"123".decode('utf-8')

NOTE: decode default encoding is ‘utf-8’ for Python 3.x.

bytearray('123', 'utf-8').decode('utf-8')
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.