zope 2.10.2b1 I get some unicoderrors with the product IssueDealer does the traceback indicate that there is something wrong with zope or is it the product? Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module Shared.DC.Scripts.Bindings, line 313, in __call__ Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec Module Products.PageTemplates.PageTemplateFile, line 129, in _exec Module Products.PageTemplates.PageTemplate, line 89, in pt_render Module zope.pagetemplate.pagetemplate, line 117, in pt_render Module zope.tal.talinterpreter, line 271, in __call__ Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 861, in do_defineMacro Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 855, in do_condition Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 536, in do_optTag_tal Module zope.tal.talinterpreter, line 521, in do_optTag Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 534, in do_optTag_tal Module zope.tal.talinterpreter, line 516, in no_tag Module zope.tal.talinterpreter, line 346, in interpret Module zope.tal.talinterpreter, line 754, in do_insertStructure_tal UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 38: ordinal not in range(128) -- -- Einar Næss Jensen http://einarblog.homemade.no/einarblog http://www.homemade.no tlf: +47 90990249 (\__/) (='.'=)This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination.
Einar Næss Jensen wrote at 2007-1-17 11:03 +0100:
zope 2.10.2b1
I get some unicoderrors with the product IssueDealer does the traceback indicate that there is something wrong with zope or is it the product?
Traceback (innermost last): ... Module zope.tal.talinterpreter, line 754, in do_insertStructure_tal UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 38: ordinal not in range(128)
The traceback only shows that the problem is with some "tal:{content|replace}='structure'". There some unicode and non unicode is mixed together and the non unicode cannot be converted to unicode with the default encoding. *If* you have something like a standard site encoding (i.e. almost all your non-unicode texts use the same encoding), then you could change Python's default encoding to your site encoding and thereby reduce the number of "UnicodeError"s. -- Dieter
participants (2)
-
Dieter Maurer -
Einar Næss Jensen