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
