My strings look like this \\xec\\x88\\x98
, but if I print them they look like this \xec\x88\x98
, and when I decode them they look like this \xec\x88\x98
If I type the string in manually as \xec\x88\x98
and then decode it, I get the value I want 수
.
If I x.decode('unicode-escape')
it removes the double slashes, but when decoding the value returned by x.decode('unicode-escape')
, the value I get is ì
.
How would I go about decoding the original \\xec\\x88\\x98
, so that I get the value correct output?