I have a situation reading some files.
This is my code at the moment:
#Before this code no relevant to the problem
with open(path+r"\\"+file) as js:
lines = js.readlines()
for line in lines:
if('"text" : ' in line):
line = line.replace('"text" : ',"")
for word in line.split():
pass
Word is already a string, but there are some strings, like 'compa\u00F1eras' that should be 'compañeras'. I need to change the Unicode characters to their representation (I'm working with spanish text, so I expect to see characters with accents marks, like á or ó).
What can I do?
Thanks in advance.