#4451: [newforms-admin] UnicodeDecodeError at getext string in widgets
---------------------------+------------------------------------------------
Reporter:  [EMAIL PROTECTED]  |       Owner:  jacob        
  Status:  new             |   Component:  Uncategorized
 Version:  SVN             |    Keywords:               
   Stage:  Unreviewed      |   Has_patch:  0            
---------------------------+------------------------------------------------
 This is bugreport of general bug. First I wrote one example where it
 happends:
 
 When I have newforms django admin site in my language (Czek(cs), but it
 dosn't matter), and go to model page, which has !DateTime field, I get
 !UnicodeDecodeError, such like this ("Time" is "Čas" in Czek):
 {{{
 UnicodeDecodeError at /admin/cms/menu/62/
 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in
 range(128)
 Request Method:         GET
 Request URL:    http://127.0.0.1:8000/admin/cms/menu/62/
 Exception Type:         UnicodeDecodeError
 Exception Value:        'ascii' codec can't decode byte 0xc4 in position
 0: ordinal not in range(128)
 Exception Location:     /usr/lib/python2.4/site-
 packages/django/contrib/admin/widgets.py in format_output, line 42
 }}}
 The coresponding line is:
 {{{
 return u'<p class="datetime">%s %s<br />%s %s</p>' % \
      (_('Date:'), rendered_widgets[0], _('Time:'), rendered_widgets[1])
 }}}
 
 
 This bug happends at lot of places in widgets.py, where gettext character
 is rendered to unicode string.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/4451>
Django Code <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