Use string-escape
encoding instead of unicode-escape
:
>>> print string1.decode('string-escape')
<value>UK LONDON 8CS Flr01 Rm1ğ</value>
or use decode it using unicode-escape
, then encode it using latin1
encoding:
>>> print string1.decode('unicode-escape').encode('latin1')
<value>UK LONDON 8CS Flr01 Rm1ğ</value>
NOTE string-escape
is only available in Python 2.x.