﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
3904	UnicodeDecodeError with RadioSelect and funky characters	Ville Säävuori <Ville@…>	Adrian Holovaty	"I have following list of genders:

{{{
GENDERS = (
    ('0', u'En tiedä'),
    ('1', u'Mies'),
    ('2', u'Nainen'),
)
}}}

And following line in my form:

{{{
gender = forms.ChoiceField(choices=GENDERS, widget=forms.RadioSelect(attrs={'class': 'gender'}), label=""Sukupuoli"")
}}}

And i get this error

{{{
UnicodeDecodeError
'ascii' codec can't decode byte 0xc3 in position 204: ordinal not in range(128)
.. /django/newforms/forms.py in _html_output, line 129
}}}

A temporary fix is to convert the problematic chars to HTML entities like:

{{{
GENDERS = (
    ('0', u'En tied&auml;'),
    ('1', u'Mies'),
    ('2', u'Nainen'),
)
}}}"		closed	Forms	dev		duplicate	unicode, newforms		Unreviewed	0	0	0	0	0	0
