[ACCEPTED]-How to decode unicode raw literals to readable string?-unicode-literals
If you are getting weird results when decoding 3 try following
print repr(s).decode('unicode-escape').encode('latin-1') // or encode using some other encoding
It could be that python terminal 2 is using default ASCII and there is symbol 1 that goes out of range.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.