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 4451,[newforms-admin] UnicodeDecodeError at getext string in widgets,glin@…,Adrian Holovaty,"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'

%s %s
%s %s

' % \ (_('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.",,closed,contrib.admin,newforms-admin,,fixed,,,Accepted,0,0,0,0,0,0