[ZCM] [ZC] 2228/ 3 Comment "Pound Signs in Zope v2.10"
"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel.collector-monitor |
|---|---|
| Message-ID | <[email protected]> |
Issue #2228 Update (Comment) "Pound Signs in Zope v2.10"
Status Rejected, Zope/bug critical
To followup, visit:
http://www.zope.org/Collectors/Zope/2228
==============================================================
= Comment - Entry #3 by sukhsc on Dec 28, 2006 8:09 am
The patch referenced does not solve the issue, you still get an error if you add a pound sign to the system.
Using something like below does create a temporary solution though:
unicode(myString, 'latin-1')
________________________________________
= Reject - Entry #2 by philikon on Nov 2, 2006 12:53 pm
Status: Pending => Rejected
This sounds like a duplicate of http://www.zope.org/Collectors/Zope/2180. Can you please apply 'zptunicode2.patch' from that issue and see if the problem goes away? If so, please comment *there*, otherwise resubmit this issue.
________________________________________
= Request - Entry #1 by sukhsc on Nov 2, 2006 11:18 am
When a page template uses a £ (pound sign) it throws an error (shown below). So if you were to grad data from a database which contained a pound sign the page crashes.
This happens if I try to edit page templates I have carried forward from an older version of zope or if I create a new one. The only way around this I have found is to use the unicode method to decode the string, however this is now difficult to implement in a site which already uses str().
Hope you can find a solution to this as it causing many difficulties.
################### Error Listed Below ###################
Time 2006/11/02 16:23:45.392 GMT
User Name (User Id) ****** (******)
Request URL http://**************************/tester2/pt_editAction
Exception Type UnicodeDecodeError
Exception Value 'ascii' codec can't decode byte 0xc2 in position 453: ordinal not in range(128)
Traceback (innermost last):
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module Products.PageTemplates.ZopePageTemplate, line 156, in pt_editAction
* Module Shared.DC.Scripts.Bindings, line 313, in __call__
* Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
* Module Products.PageTemplates.PageTemplateFile, line 121, in _exec
* Module Products.PageTemplates.PageTemplate, line 89, in pt_render
* Module zope.pagetemplate.pagetemplate, line 118, in pt_render
* Module StringIO, line 271, in getvalue
==============================================================