Strange problems with encoding
rudy.schockaert at pandoraSTOPSPAM.be
Thu Nov 6 16:00:44 CET 2003
Joe Fromm wrote:
> Try adding
> sys.setdefaultencoding( 'latin-1' )
> to your site.py module, or rewrite your fragment as
At the end of site.py you can enable a piece of code that sets your
default encoding to the current locale of your computer:
# Enable to support locale aware default string encodings.
loc = locale.getdefaultlocale()
encoding = loc
This works great for me.
Thanks for pointing me to site.py
P.S. I really need some weeks off so I can read all the available
More information about the Python-list