[Python-Dev] Unicode

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue, 23 May 2000 23:44:11 +0200


> > # However, because the source command always reads files using the
> > # ISO8859-1 encoding, Tcl will treat each byte in the file as a
> > # separate character that maps to the 00 page in Unicode.
> 
> as far as I can tell from digging through the sources, the "source"
> command uses the system encoding.  and from the look of it, it's
> not always iso-latin-1...

Indeed, this appears to be an error in the documentation. sourcing

encoding convertto utf-8 ä

has an outcome depending on the system encoding; just try koi8-r to
see the difference.

Regards,
Martin