I have a string in python - b'&\xc1\xba\xda\xc5\x9b\xea\xba\x11\xd3@\x13/\xdf%8g\xf1# \x11\x8fp&' I want to decode it, but for this utf-8 doesn't work. Can you help me, how can i determine character encoding?
Asked
Active
Viewed 61 times
0
-
1Are you sure that's a valid string? You can try decoding it with 'ISO-8859-1' like so: `b'&\xc1\xba\xda\xc5\x9b\xea\xba\x11\xd3@\x13/\xdf%8g\xf1# \x11\x8fp&'.decode('ISO-8859-1')` – user16965639 Apr 10 '22 at 07:25
-
I think this is your answer: https://stackoverflow.com/a/27527728/11318161 – Ali Rn Apr 10 '22 at 07:42