locale.CODESET / different in python shell and scripts

Nuff Said nuffsaid at phreaker.net
Fri Apr 30 12:16:13 EDT 2004


On Fri, 30 Apr 2004 11:56:19 +0200, Nuff Said wrote:
> But *I do use* the line 
> 
>   # -*- coding: UTF-8 -*- 
> 
> from your PEP (directly after the shebang-line; s. the full source
> code in my earlier posting). I thought, that allows me to write u"ö"
> (which - as described above - works in one of my two Pythons).  

Follow up to myself:

Arrgh!!! Think I got it now. Your PEP 263: 'Source Code Encodings' was
incorporated into Python 2.3 (i.e. my self-compiled Python) but not
into Python 2.2 (Fedora's Python).

Thanks for your help!




More information about the Python-list mailing list