When i have something like this, turbogears raises exception.
Here is stacktrace:
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0_betadev-py2.4.egg/cherrypy/_cphttptools.py",
line 276, in run
main()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.0_betadev-py2.4.egg/cherrypy/_cphttptools.py",
line 498, in main
body = page_handler(*args, **cherrypy.request.paramMap)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.5.1-py2.4.egg/turbogears/controllers.py",
line 93, in newfunc
output = func(self, *args, **kw)
File "/home/forge/tgportal/tgportal/controllers.py", line 58, in
login
turbogears.flash(u"Nieprawidlowe haslo lub login")
File
"/usr/lib/python2.4/site-packages/TurboGears-0.5.1-py2.4.egg/turbogears/controllers.py",
line 103, in flash
cherrypy.response.simpleCookie['turbogearsflash'] = message
File "/usr//lib/python2.4/Cookie.py", line 580, in __setitem__
rval, cval = self.value_encode(value)
File "/usr//lib/python2.4/Cookie.py", line 667, in value_encode
strval = str(val)
UnicodeEncodeError: 'ascii' codec can't encode characters in position
9-10: ordinal not in range(128)
Is there a way to have non ascii characters in flash message ?