Convertion strings like \\uXXXX in python
Posted
by Gregory Lo
on Stack Overflow
See other posts from Stack Overflow
or by Gregory Lo
Published on 2010-05-13T16:00:43Z
Indexed on
2010/05/19
13:00 UTC
Read the original article
Hit count: 225
I have a strings like \uXXXX (representation) and I need to convert it into unicode. I recieve it from 3rd party service so python interpreter don't convert it and I need convertion in my code. How do I do it in Python?
>>> s
u'\\u0e4f\\u032f\\u0361\\u0e4f'
© Stack Overflow or respective owner