When trying to use a SelectDateWidget from forms.extras.widgets.py I'm
getting the
following error:


Traceback (most recent call last):
File "c:\Python24\Lib\site-packages\django\template\__init__.py" in
render_node
  723. result = node.render(context)
File "c:\Python24\Lib\site-packages\django\template\__init__.py" in
render
  778. return self.encode_output(output)
File "c:\Python24\Lib\site-packages\django\template\__init__.py" in
encode_output
  757. return str(output)
File "c:\Python24\Lib\site-packages\django\utils\encoding.py" in
__str__
  31. return self.__unicode__().encode(settings.DEFAULT_CHARSET)
File "c:\Python24\Lib\site-packages\django\newforms\forms.py" in
__unicode__
  74. return self.as_table()
File "c:\Python24\Lib\site-packages\django\newforms\forms.py" in
as_table
  145. return self._html_output(u'<tr><th>%(label)s</th><td>%(errors)s%
(field)s%(help_text)s</td></tr>', u'<tr><td colspan="2">%s</td></tr>',
'</td></tr>', u'<br />%s', False)
File "c:\Python24\Lib\site-packages\django\newforms\forms.py" in
_html_output
  130. output.append(normal_row % {'errors': bf_errors, 'label':
label, 'field': unicode(bf), 'help_text': help_text})
File "c:\Python24\Lib\site-packages\django\newforms\forms.py" in
__unicode__
  228. value = self.as_widget(self.field.widget)
File "c:\Python24\Lib\site-packages\django\newforms\forms.py" in
as_widget
  253. return widget.render(self.html_name, data, attrs=attrs)
File "c:\Python24\Lib\site-packages\django\newforms\extras\widgets.py"
in render
  42. select_html =
Select(choices=month_choices).render(self.month_field % name,
month_val)
File "c:\Python24\Lib\site-packages\django\newforms\widgets.py" in
render
  171. output.append(u'<option value="%s"%s>%s</option>' %
(escape(option_value), selected_html,
escape(smart_unicode(option_label))))

  UnicodeDecodeError at /prod/add/
  'ascii' codec can't decode byte 0xc5 in position 6: ordinal not in
range(128)

Tried with both Django 0.96 & SVN (as of today April 11th).
DEFAULT_CHARSET='utf-8'

Thanks,

Robert


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to