Source Code:
(back to article)
byte_string = b'Hello, world!' string = str(byte_string, 'utf-8') print(string) # Output: 'Hello, world!'
Result:
Report an issue