Opened 16 years ago
Closed 16 years ago
#9322 closed (invalid)
UnicodeEncodeError at /admin/auth/user/5/delete/
Reported by: | coderam | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
This is the error I get when deleting a user. This happens because some of the data tied to the user account that should be displayed on the confirmation page cannot be templated as ascii (it's unicode).
UnicodeEncodeError at /admin/auth/user/5/delete/
'ascii' codec can't encode character u'\xa0' in position 30: ordinal not in range(128)
Request Method: GET
Request URL: http://url.com/admin/auth/user/5/delete/
Exception Type: UnicodeEncodeError
Exception Value:
Please post a full traceback when opening problems like this. In general the admin has no difficulty with non-ASCII data in models, so I suspect the problem here is your model does not have a correct
__unicode__
method. If you are sure that the error is not due to that, reopen with full details on your model and the traceback you are getting. Without that it's impossible to debug the problem.