I'm reading data from an aws s3 bucket which happens to have unicode chars escaped with double backslashes.
The double backslashes makes the unicode sequence parsed as a series of utf-8 characters instead of the character which the unicode represents.
The example illustrates the situation.
>>> s1="1+1\\u003d2"
>>> print(s1)
1+1\u003d2
The actual unicode sequence would in this case an equal sign.
>>> s2="1+1\u003d2"
>>> print(s2)
1+1=2
Is there a way to convert the sequence of utf-8 character in the first example so that the string represented by s1 is parsed with it's unicode sequence as the actual utf-8 sign that it represents?