DEV Community

Zakk
Zakk

Posted on

How to convert unicode byte sequences present in a file into corresponding unicode characters in python 2.7?

I have a text file containing lines with unicode byte sequences. For eg. one line is:

L'Oscar du Meilleur Film est attribu\u00e9 \u00e0 Green Book.

In my output file, I need the above line to be written as below:

L'Oscar du Meilleur Film est attribué à Green Book.

How can…

Top comments (0)