Opened 18 years ago
Last modified 17 years ago
#4663 closed
UnicodeDecodeError with SelectDateWidget — at Version 1
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | SelectDateWidget | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
My form:
class EditProfileForm(forms.Form): birthday = forms.DateField(widget=SelectDateWidget(years=range(1968, 1988)), label=_('Birthday'))
If USE_I18N = True
in settings, I receive UnicodeDecodeError:
Request Method: GET Exception Type: UnicodeDecodeError Exception Value: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) Exception Location: /usr/local/lib/python2.4/site-packages/django/newforms/widgets.py in render, line 173
Note:
See TracTickets
for help on using tickets.
(Added wiki formatting to description.)
Without a bit more information, it isn't really possible to debug this. I suspect it's probably one of the problems that has been fixed on the Unicode branch. Please cut-and-paste the full traceback: find the link on the Debug screen that says "cut and paste version" and click it, then paste the results into a comment (remember to wrap them in
{{{
and}}}
markers to get the wiki formatting right).Also, which locale is in effect when this error occurs?