#2305: WebError is not Unicode safe
------------------------+---------------------------------------------------
 Reporter:  digulla     |       Owner:        
     Type:  defect      |      Status:  new   
 Priority:  normal      |   Milestone:        
Component:  TurboGears  |     Version:  2.0rc1
 Severity:  major       |    Keywords:        
------------------------+---------------------------------------------------
 If the stacktrace contains umlauts (non-ascii characters), then the code
 in WebError 0.10.1 fails. The underlying issue is that WebError uses
 cgi.escape() to escape special HTML characters but this method doesn't
 escape unicode characters and this leads to problems eventually.

 My fix was to copy the code for "_encode_entity" from elementtree-1.2
 .7_20070827_preview-py2.6.egg into
 WebError-0.10.1-py2.6.egg/weberror/evalexception.py and replace all calls
 to cgi.escape() with the new function.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2305>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to