﻿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
3266	RadioSelect broken -- UnicodeDecodeError	Honza Král <Honza.Kral@…>	Adrian Holovaty	"test application:

'''templates/test_form.html''':
  {{{ {{ form }} }}}

'''views.py''':
  {{{
# -*- coding: utf-8 -*-
                
from django import newforms as forms         
from django.shortcuts import *               
                
class TestForm( forms.Form ):
    sel_field = forms.ChoiceField(                                                                                                                                                                            
                    label=Žluťoučký kůň',  
                    choices=[
                        ( u'Žluťoučký', u'úpěl ďábelské ódy' ),
                        ( u'Žluťoučký', u'úpěl ďábelské ódy' ) 
                    ],
                    widget=forms.RadioSelect                                                                                                                              
                )
                
                
def test_view( request ):
    return render_to_response( ""test_form.html"", { 'form' : TestForm() } )                                                                                        
}}}

'''urls.py''':
{{{
from django.conf.urls.defaults import *
       
urlpatterns = patterns('',
    (r'^test_form/$', 'myTest.views.test_view' ),                                                                                                                         
)  
}}}

If you change the widget to Select, everything works OK, with the RadioSelect it fails on UnicodeDecode error.
Unfortunately I do not understand UNICODE in python (I am fairly new to the language) so I cannot fix it myself without guessing."	defect	closed	Forms		normal	duplicate		Honza.Kral@… jl@…	Accepted	0	0	0	0	0	0
