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?
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/
The problem I've run into on Windows is that one or more Tkinter widgets generates an error when passed unicode text that contains code points greater than 127. After changing the encoding to utf-8 it works just fine.
My question, however, was whether pyinstaller will have any problems picking up changes to site.py. So far the reload(sys) hack has been working fine, so I may not need to deal with the 'proper' solution in any case.
Goebel Consult
http://www.goebel-consult.de
If he is experiencing issues with Tkinter then we should probably fix the tkinter hook in pyinstaller.