Encoding problems
"Martin v. Löwis"
martin.vonloewis at hpi.uni-potsdam.de
Fri Sep 3 10:15:13 EDT 2004
Gandalf schrieb:
> However, the input (the result of raw_input) will be in the correct
> encoding (iso-8859-2 in my case) without any conversion.
> I do not understand why is that? The stdin encoding is cp852, not
> iso-8859-2.
Why do you say that the input will be in the correct encoding? In
your original message, you said that you got this:
'n\xe9z'
'n\x82z'
where the first string was repr(s1) (i.e. in the source encoding,
iso-8859-2). The second string (repr(s2)) is the one that you got
from raw_input, so it is *not* in iso-8859-2. Why do you say it
is?
Regards,
Martin
More information about the Python-list
mailing list