[#1447 UnicodeDecodeError during edit preview]

[email protected] (simon) Thu, 22 Oct 2009 19:17:12 -0700
Newsgroups gmane.comp.web.zope.zwiki
Message-ID <20091022191707-0700__48502.5048991249$1256264250$gmane$org@zwiki.org>
With latest Zwiki, eg when previewing [IE6JP日本語]::

 Traceback (innermost last):
  Module ZPublisher.Publish, line 127, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 47, in call_object
  Module Products.ZWiki.Views, line 710, in editform
  Module Products.ZWiki.Views, line 731, in editform
  Module Shared.DC.Scripts.Bindings, line 324, in __call__
  Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 130, in _exec
  Module Products.PageTemplates.PageTemplate, line 80, in pt_render
  Module zope.pagetemplate.pagetemplate, line 115, in pt_render
  Module zope.tal.talinterpreter, line 271, in __call__
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 946, in do_defineSlot
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 888, in do_useMacro
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 852, in do_condition
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 533, in do_optTag_tal
  Module zope.tal.talinterpreter, line 518, in do_optTag
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 531, in do_optTag_tal
  Module zope.tal.talinterpreter, line 513, in no_tag
  Module zope.tal.talinterpreter, line 343, in interpret
  Module zope.tal.talinterpreter, line 742, in do_insertStructure_tal
  Module Products.PageTemplates.Expressions, line 195, in evaluateStructure
  Module zope.tales.tales, line 696, in evaluate
   - URL: pageheader
   - Line 40, Column 18
   - Expression: <PythonExpr here.talsafe(here.context(request,enlarge_current=1))>
   - Names:
      {'container': <BTreeFolder2 at /zwiki.org>,
       'context': <ZWikiPage 'IE6JP_65e5_672c_8a9e' at 0x34cb050>,
       'default': <object object at 0x7ff24d4464e0>,
       'here': <ZWikiPage 'IE6JP_65e5_672c_8a9e' at 0x34cb050>,
       'loop': {},
       'nothing': None,
       'options': {'action': 'Edit',
                   'args': (<ZWikiPage 'IE6JP_65e5_672c_8a9e' at 0x34cb050>,
                            <HTTPRequest, URL=http://zwiki.org/IE6JP_65e5_672c_8a9e/editform>),
                   'id': u'IE6JP\u65e5\u672c\u8a9e',
                   'oldid': 'IE6JP_65e5_672c_8a9e',
                   'page': u'IE6JP\u65e5\u672c\u8a9e',
                   'text': u"[\u65e5\u672c\u8a9e\u30c6\u30b9\u30c8]\n\nFrom koyoshi Sun Sep 16 07:26:22 -0700 2007\nFrom: koyoshi\nDate: Sun, 16 Sep 2007 07:26:22 -0700\nSubject: My Zwiki Sites remain in deadlock. But, zwiki.org has been normal today's test. \nMessage-ID: <[email protected]>\n\nI tested with zwiki.org last week. zwiki.org make a new page named http + hexadecimal numbers letters.\nBut, now, zwiki.org has been normal today's test with IE6.  What's changed in zwiki.org?\n\nMy Zwiki Sites remain in deadlock. Anyone, Please, Give me hints.\n\nAnd, a link tip of edit get garbled with ZWiki-0.60.0 with IE6.\n\n[IE6JP\u65e5\u672c\u8a9e]\n\n"},
       'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x47e3ab8>,
       'request': <HTTPRequest, URL=http://zwiki.org/IE6JP_65e5_672c_8a9e/editform>,
       'root': <Application at >,
       'template': <PageTemplateFile at /zwiki.org/editform used for /zwiki.org/IE6JP_65e5_672c_8a9e>,
       'user': <SpecialUser 'Anonymous User'>}
  Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
   - __traceback_info__: here.talsafe(here.context(request,enlarge_current=1))
  Module PythonExpr, line 1, in <expression>
  Module Products.ZWiki.OutlineSupport, line 737, in context
  Module Products.ZWiki.OutlineSupport, line 952, in renderNesting
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xe6 in position 160: ordinal not in range(128)

--
forwarded from http://zwiki.org/1447UnicodeDecodeErrorDuringEditPreview#[email protected]