Personal tools
You are here: Home Documentation How to Unicode error

Unicode error

If you add non-ascii character (e.g.: ü,ä,ö,ß, é, ç, ï, etc.) in your fom layout, you get an UnicodeDecodeError Exception.

Python default encoding is ascii, and if you need language-specific characters, you have to change it to utf-8 (or other, depending on the locale language)
To do that, add a file named sitecustomize.py in Python-2.4.4/lib/python2.4/site-packages, containing the following code:

import sys
sys.setdefaultencoding('utf-8')

 
And then restart Zope.

Document Actions
Sponsors