sys.stdin.encoding
a = '\xc3\xa8'.decode('UTF-8')
b = '\xc3\xa8'.decode('latin-1')
a
b
sys.stdout.encoding
print(b)
print(a)
What's the best way to determine decoding method of a unicode string in python