Opened 6 years ago

Closed 6 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: UI/UX:


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:
Exception Type: UnicodeEncodeError
Exception Value:

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.