On Fri, 2007-06-22 at 15:06 -0700, Boo wrote:
> Hi All.
> 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 an error:
>
> 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
At the moment, the solution is probably to use the Unicode branch. There
are a number of problems with Unicode and ASCII interchange in trunk and
that is why we have the Unicode branch in development.
Regards,
Malcolm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---