After being hours checking every stackoverflow post related to this, I'm pulling my hair to solve what should be a very simple thing...
I have a text file with unicode codes (not characters, codes), for example:
"Edward escribi\u00c3\u00b3 la biograf\u00c3\u00ada de su autor favorito"
This string should be displayed as:
"Edward escribió la biografía de su autor favorito"
If I load the file as I normally do, I will just see the unicode strings when I print the loaded text:
import io
chars = io.open(fb_json_path, encoding='utf-8').read().strip()
This prints: "Edward escribi\u00c3\u00b3 la biograf\u00c3\u00ada de su autor favorito". It's the same if I remove the encoding parameter.
I guess I need to tell Python to interprete the codes in the string and display them as utf-8 characters, but I don't get how to do that.
Thanks in advance!