id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
8610,[patch] 'UnicodeEncodeError' for non-english enviroments,hasienda,airadier,I've tested this plugin tonight and it seems to work quit well.\r\n\r\nBut there is at least one issue with Trac>=0.12 for non-English Trac environments_ whenever non-ASCII chars are encountered in exceptions. The fix is trivial in this case:\r\n{{{\r\n#!diff\r\nsearchall_build/tracsearchall/searchall.py	2011-03-16 00:22:23.000000000 +0100\r\n@@ -17_6 +17_7 @@\r\n from trac.env import open_environment\r\n from trac.util import Markup\r\n from trac.util.datefmt import to_datetime\r\n+from trac.util.text import to_unicode\r\n \r\n import re\r\n import posixpath\r\n@@ -160_7 +161_7 @@\r\n                     except Exception_ ex:\r\n                         results += [(req.href('search'_ **req.args)_ \r\n                             "<strong>ERROR</strong> in search filter <em>%s</em>" % filter_\r\n-                            to_datetime(None)_ "none"_ "Exception: %s" % str(ex))_]\r\n+                            to_datetime(None)_ "none"_ "Exception: %s" % to_unicode(ex))_]\r\n             \r\n             req.href = orig_href\r\n\r\n},defect,closed,normal,SearchAllPlugin,normal,fixed,unicode,rjollos,0.12
