[ZCM] [ZC] 2339/ 3 Resolve "UnicodeDecodeError while using structure keyword"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]> Sun, 12 Aug 2007 00:56:18 -0400
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2339 Update (Resolve) "UnicodeDecodeError while using structure keyword" Status Resolved, Zope/bug medium To followup, visit: http://www.zope.org/Collectors/Zope/2339 ============================================================== = Resolve - Entry #3 by ajung on Aug 12, 2007 12:56 am Status: Accepted => Resolved Fixed on the Zope trunk and 2.10 branch. ________________________________________ = Assign - Entry #2 by ajung on Aug 12, 2007 12:00 am Status: Pending => Accepted Supporters added: ajung ________________________________________ = Request - Entry #1 by Pigletto on Jul 17, 2007 1:01 am Uploaded: "ZPTUnicodeAndStructureKeywordTest.tar.gz" - http://www.zope.org/Collectors/Zope/2339/ZPTUnicodeAndStructureKeywordTest.tar.gz/view Expressions like: <em tal:content="structure python: 'żółć'">template id</em> are failing with UnicodeDecodeError (traceback at the bottom). UnicodeDecodeError resolver seems to not handle such expressions at all. Issue was first introduced at mailing list: http://mail.zope.org/pipermail/zope/2007-July/171818.html Attached test exposes described behaviour. To execute test just untar into <ZOPE INSTANCE>/Products/ and execute: cd <ZOPE INSTANCE> bin/zopectl test --dir Products/ZPTUnicodeAndStructureKeywordTest Error traceback: Error Type: UnicodeDecodeError Error Value: 'ascii' codec can't decode byte 0xc5 in position 200: ordinal not in range(128) 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 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 0xc5 in position 200: ordinal not in range(128) ==============================================================