Opened 17 years ago

Last modified 17 years ago

#4834 closed

UnicodeEncodeError in admin change_form page — at Initial Version

Reported by: perol.chen@… Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: Keywords: UnicodeEncodeError
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

when i open the change_form page in admin, i occur the error below:

Request Method: GET

Request URL: /admin/comment/comment/53/

Exception Type: UnicodeEncodeError

Exception Value: 'ascii' codec can't encode characters in position 4-10: ordinal not in range(128)

Exception Location: C:\Python25\lib\site-packages\django\utils\encoding.py in force_unicode, line 40

Python Executable: C:\Python25\python.exe

Python Version: 2.5.1

C:\Python25\lib\site-packages\django\utils\encoding.py in force_unicode

  1. if hasattr(s, 'unicode'):
  2. s = unicode(s)
  3. else:

40. s = unicode(str(s), encoding, errors) ... #this is the error line

  1. elif not isinstance(s, unicode):
  2. s = unicode(s, encoding, errors)
  3. return s

perol.chen

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top