Am 05.11.2012 22:08, schrieb Lynn Oliver:
> For OSX, you can set the encoding by placing the following as the
> first or second line of a module:
> #-*- coding: utf-8 -*-
>
> That doesn't work on Windows, as Python apparently sets the encoding
> when starting up and won't change it later.  
>
> [...]
> Does this sound correct?

No, this sound wrong.

The coding-line effects only the *single* file, which contains this
line. It does not set any default-encoding nor does it effect other
files. Each file has to define its encoding by itself. See
http://docs.python.org/2/reference/lexical_analysis.html#encoding-declarations

What are the problems you encounter?

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP

Goebel Consult
http://www.goebel-consult.de

Monatliche Kolumne:
http://www.cissp-gefluester.de/2011-02-fleisige-datensammler-fur-lukratives-geschaeftsmodell-gesucht

Blog: http://www.goebel-consult.de/blog/20060215

Goebel Consult ist Mitglied bei http://www.7-it.de/

Attachment: smime.p7s
Description: S/MIME Kryptografische Unterschrift

Reply via email to