I am trying to create field in form with name "Ø" (special danish characters).
My code is something like this: field = forms.CharField() form.fields[smart_unicode("Ø")] = field After that i got exception in django during validation: File "\django\forms\forms.py", line 233, in full_clean if hasattr(self, 'clean_%s' % name): UnicodeEncodeError 'ascii' codec can't encode character u'\xd8' in position 6: ordinal not in range(128) I tried another way like: field = forms.CharField() form.fields[smart_str("Ø")] = field In this case i got exception in other place in code: File "\django\forms\forms.py", line 98, in __iter__ yield BoundField(self, field, name) File "\django\forms\forms.py", line 322, in __init__ self.html_initial_name = form.add_initial_prefix(name) File "\django\forms\forms.py", line 135, in add_initial_prefix return u'initial-%s' % self.add_prefix(field_name) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal not in range(128) Thanks for any help with this problem. I tried this in 1.0.2 and 1.1.1 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.