Closed GoogleCodeExporter closed 8 years ago
Problem appears to be solved; and it may have been only a local one - but
something
to keep in mind. In order to deal with previous encoding issues related to
the fact
that my home directory has some accented characters (i.e. in my name, André),
I had
included in the Python path under the Lib directory the file sitecustomize.py
with
the content
import sys
sys.setdefaultencoding('latin-1')
as this is the "natural" encoding for French. By changing it to
import sys
sys.setdefaultencoding('utf-8')
the inconsistency disappeared and all the coding/decoding appears to be properly
done. This may need to go in a FAQ at some point.
Original comment by andre.ro...@gmail.com
on 4 Jan 2007 at 1:08
Note that this solution was not a valid one, as it messed up other local
programs
that depended on this site customization. A different solution has been found
which
involved decoding the output of the interpreter using the default encoding and
re-encoding it into utf-8.
Original comment by andre.ro...@gmail.com
on 4 Jan 2007 at 3:36
Original issue reported on code.google.com by
andre.ro...@gmail.com
on 4 Jan 2007 at 1:00