Unicode to default encoding...

Gillou nospam at bigfoot.com
Tue Jun 18 07:01:39 EDT 2002


Hi,

I'm looking for a way to encode an Unicode string to the default encoding
for the output (console, file...).

someunicodestring.encode('iso8859-1')

works for a file (windows & unix) but gives ugly characters on a windows
console.

Thanks in advance

--Gilles
glenfant AT bigfoot DOT com





More information about the Python-list mailing list