[Zope3-dev] unicode problems !?
j.kartnaller
j.kartnaller at robotech.at
Fri Oct 8 03:01:34 EDT 2004
I'm actually encountered two problems with non ascii data :
1.
If a doc-string contains non ascii data (eg. german umlaut) I get the
following error :
...
File
"D:\PROGRA~1\Python23\Lib\site-packages\zope\tales\expressions.py", line
201, in _eval
return ob()
File
"D:\PROGRA~1\Python23\Lib\site-packages\zope\app\apidoc\ifacemodule\brows
er.py", line 250, in getDoc
removeSecurityProxy(self.context).__module__)
File
"D:\PROGRA~1\Python23\Lib\site-packages\zope\app\apidoc\utilities.py", li
ne 546, in renderText
source = zapi.createObject(None, format, text)
File
"D:\PROGRA~1\Python23\Lib\site-packages\zope\component\__init__.py", line
184, in createObject
return getUtility(IFactory, name, context)(*args, **kwargs)
File
"D:\PROGRA~1\Python23\Lib\site-packages\zope\app\renderer\__init__.py", l
ine 41, in __call__
source = Source(ustr)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 4:
ordinal
not in range(128)
2.
I create a file object in ZMI as text/plain.
Then I edit the content of the file and enter a german umlaut I get the
message 'Invalid textual data'.
This happens in 'zope.app.form.browser.textwidgets.py'
Any suggestion ?
jürgen
More information about the Zope3-dev
mailing list