I try to open a text file in French with Python 2.7. I used the command
f=open('textfr','r')
but when I use
f.read()
I lose accented characters: I get u"J'\xc3\xa9tais \xc3\xa0
Paris instead of J'étais à
Paris, etc..
when in linux terminal, I do
file -i textfr
I get
charset=utf-8
so I do not understand...