Changes between Initial Version and Version 1 of Ticket #4663


Ignore:
Timestamp:
Jun 22, 2007, 9:27:04 PM (17 years ago)
Author:
Malcolm Tredinnick
Comment:

(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?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4663 – Description

    initial v1  
    11My form:
    2 
     2{{{
     3#!python
    34class EditProfileForm(forms.Form):
    45    birthday = forms.DateField(widget=SelectDateWidget(years=range(1968, 1988)), label=_('Birthday'))
     6}}}
    57
    6 If USE_I18N = True in settings, I receive UnicodeDecodeError:
    7 
     8If {{{USE_I18N = True}}} in settings, I receive !UnicodeDecodeError:
     9{{{
    810Request Method: GET
    911Exception Type: UnicodeDecodeError
    1012Exception Value: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
    1113Exception Location: /usr/local/lib/python2.4/site-packages/django/newforms/widgets.py in render, line 173
     14}}}
Back to Top