unicode experiments + questions

Irmen de Jong irmen at NOSPAMREMOVETHISxs4all.nl
Wed Mar 27 17:58:14 EST 2002


A few quick additions;
> How does Python know this charset, because in my syte.py
encoding="iso-8859-15".
That must be site.py ofcourse, to set the default encoding.

[...]
> for enc in ['utf-16','utf-8','utf-7','iso-8859-15','cp1252']:
[...]
Adding the well-known iso-8859-1 (iso-latin-1) to the list
results in an exception: Latin-1 encoding error: ordinal not in range(256)
as expected, because I found out that the Euro symbol is not
in latin-1 but *is* in latin-9 (iso-8859-15).





More information about the Python-list mailing list