the code below does not give a validation error when typing umlauts,  
but the umlauts are not saved to the database.

al_re = re.compile(r'^\w+$', re.UNICODE)

def clean_last_name(self):
     if 'last_name' in self.cleaned_data:
         if not al_re.search(self.cleaned_data['last_name']):
             raise forms.ValidationError('Error message.')
         return self.cleaned_data['last_name']

when doing "print self.cleaned_data" I´m getting this:
'last_name': u'M\xfcller',

how am I supposed to deal with umlautes when using newforms?
btw: all our data is utf-8

thanks,
patrick







--~--~---------~--~----~------------~-------~--~----~
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