Opened 17 years ago
Last modified 17 years ago
#4834 closed
UnicodeEncodeError in admin change_form page — at Initial Version
Reported by: | 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
- if hasattr(s, 'unicode'):
- s = unicode(s)
- else:
40. s = unicode(str(s), encoding, errors) ... #this is the error line
- elif not isinstance(s, unicode):
- s = unicode(s, encoding, errors)
- return s
perol.chen