I am trying to encode Unicode character 192 in UTF-8 in Python as follows:
print(chr(192).encode())
Expected output:
b'xc0'
Actual output:
b'xc3x80'
Where am i going wrong?
I am trying to encode Unicode character 192 in UTF-8 in Python as follows:
print(chr(192).encode())
Expected output:
b'xc0'
Actual output:
b'xc3x80'
Where am i going wrong?