#12645: UnicodeEncodeError when validating forms with non-ascii field names
-------------------------------+--------------------------------------------
          Reporter:  alanjds   |         Owner:  unbracketed
            Status:  assigned  |     Milestone:  1.2        
         Component:  Forms     |       Version:  1.1        
        Resolution:            |      Keywords:  unicode    
             Stage:  Accepted  |     Has_patch:  1          
        Needs_docs:  0         |   Needs_tests:  0          
Needs_better_patch:  1         |  
-------------------------------+--------------------------------------------
Comment (by alanjds):

 Replying to [comment:3 unbracketed]:
 > Patch doesn't cover all cases. For example, printing a form created with
 the same conditions (dynamically added field with a non-ASCII name) will
 also generate an exception.
 >

 Isn't this because of console encoding issues?. My console is configured
 to UTF-8, as seen:

 {{{
 alan...@lgpill:~$ locale
 LANG=pt_BR.UTF-8
 LANGUAGE=pt_BR: pt: en_US: en
 LC_CTYPE="pt_BR.UTF-8"
 (...)
 LC_ALL="pt_BR.UTF-8"
 }}}

 When locale config was set as LANG=C, printing from ipython or simple
 python console throws exceptions yet.

 Could you post an example? I would like to try to reproduce this error.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12645#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to