#3128: UnicodeDecodeError in /account
------------------------------------------+---------------------------------
Reporter: Markus Tacker <[EMAIL PROTECTED]> | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: devel
Severity: normal | Resolution:
Keywords: UnicodeDecodeError |
------------------------------------------+---------------------------------
Comment (by cboos):
Could you please do the following change, repeat the operation,
and then tell me what is written in the error page?
I've not been able to figure out what was the exception
raised from the hacks:AccountManagerPlugin which was triggering this.
{{{
#!diff
Index: trac/util/__init__.py
===================================================================
--- trac/util/__init__.py (revision 3280)
+++ trac/util/__init__.py (working copy)
@@ -98,7 +98,7 @@
return unicode(text)
except UnicodeError:
# unicode arguments given to the exception (e.g.
parse_date)
- return ' '.join([unicode(arg) for arg in text.args])
+ return ' '.join([to_unicode(arg) for arg in text.args])
return unicode(text)
errors = lossy and 'replace' or 'strict'
try:
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/3128>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets