[Zope] UnicodeDecodeError

Joern Wallstabe joern.wallstabe at igd-r.fraunhofer.de
Mon May 23 05:18:47 EDT 2005


Andreas Jung wrote:
> 
> 
> --On Montag, 23. Mai 2005 10:35 Uhr +0200 Joern Wallstabe 
> <joern.wallstabe at igd-r.fraunhofer.de> wrote:
> 
>> I'm always getting a  UnicodeDecodeError.
> 
> 
> To every error message belongs a traceback where you can see
> *where* the error occurs...another try?
> 
> -aj


the script decodes unicode 'Spécification' -> utf8 'Sp\xc3\xa9cification'

the error is raised during zpt processing.
by the way python default default encoding is set to ascii.


Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFFormController.FSControllerPageTemplate, line 98, in 
__call__
Module Products.CMFFormController.BaseControllerPageTemplate, line 42, 
in _call
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.CMFCore.FSPageTemplate, line 188, in _exec
Module Products.CMFCore.FSPageTemplate, line 127, in pt_render
Module Products.PageTemplates.PageTemplate, line 97, in pt_render

<FSControllerPageTemplate at /cmf/edit_form used for /cmf/Members/wal/myid>
Module StringIO, line 203, in getvalue
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 95: 
ordinal not in range(128)


regards joern
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2092 bytes
Desc: S/MIME Cryptographic Signature
Url : http://mail.zope.org/pipermail/zope/attachments/20050523/7ac218e4/smime.bin


More information about the Zope mailing list