In Python3, how do I convert '\\u00A9 PNG'
to '\u00A9 PNG'
(or '© PNG'
)?
For Java, there is Apache Commons Lang to decode it.
I don't know how to do in Python3.
In Python3, how do I convert '\\u00A9 PNG'
to '\u00A9 PNG'
(or '© PNG'
)?
For Java, there is Apache Commons Lang to decode it.
I don't know how to do in Python3.
This should work for you.
string = '\\u00A9 PNG'
print (string.encode('utf8').decode('unicode-escape'))
output:
© PNG