Hi,
I have a legacy database that I've been using in a php app. In PHP
the fields would render as unicode just fine.
In my Django app I get:
PhamâEURO(tm)s
instead of the expected:
Pham's
This happens for accented characters everything.
I'm no good with unicode, it has usually "just worked" but it's not
now. I've narrowed it down to the model layer, since I can just make
a function that does this:
__unicode__():
return u'é'
and that works just fine, but
__unicode__():
return self.name
(or even force_unicode(self.name)) doesn't work.
I'm using a mysql database, i'm not sure if there's a setting I can
tweak to make this all better.
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---