#4141 closed (fixed)
TextFeld raises UnicodeDecodeError
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | admin, unicode, decode, unicode-branch | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When trying to insert some text with non-ascii character into a TextField from admin, Django throws this error:
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response 77. response = callback(request, *callback_args, **callback_kwargs) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin 55. return view_func(request, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/views/decorators/cache.py" in _wrapped_view_func 39. response = view_func(request, *args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/contrib/admin/views/main.py" in change_stage 329. new_object = manipulator.save(new_data) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/manipulators.py" in save 108. new_object.save() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/polismus/aggregator/models.py" in save 59. super(UserProfile, self).save() File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/models/base.py" in save 223. db_values + [pk_val]) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/django/db/backends/util.py" in execute 19. self.db.queries.append({ UnicodeDecodeError at /admin/aggregator/userprofile/1/ 'ascii' codec can't decode byte 0xc5 in position 511: ordinal not in range(128)
Maybe this can be fixed only with the Unicode branch?
Change History (6)
comment:1 Changed 16 years ago by
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 Changed 16 years ago by
Keywords: | unicode-branch added |
---|
comment:4 Changed 16 years ago by
Use the unicode branch. This is not going to be fixed on trunk until the branch is merged.
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
This is exactly the sort of probem we are fixing on the unicode branch. I'll leave this open until that is merged, but it's not something to fix on trunk.