Noam wrote:
> telephone = CharField(u'טלפון', maxlength=30)
>
> However, it causes the admin app to fail with a nasty
> UnicodeDecodeError.
>
as Malcolm wrote already, the unicode-branch will solve this, but for
now, try to use a bytestring in your application's encoding there.
so, for example, if you use UTF-8 (you really should),
then:
telephone = CharField(u'טלפון'.encode('utf-8'), maxlength=30)
i am not sure if it will work or not, but it probably will.
gabor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---