On Sun, 2007-06-03 at 04:54 -0700, Roger wrote:
> Hi all,
> I am pretty new to django, and am trying fix some code I inherited, so
> far I have much success and have
> been impressed with Django.
> 
> I do have one problem I hope someone here can help me with. I have
> some messages in the database in several languages. When I read the
> English text, no problem. When I read the german text, it comes out
> with the umlauts (üöä) garbled.

What do they get converted to? Is the data correct when you load it back
in from the database, or is it already not what you expect by that
point?

If the data is being converted (or not converted) when it is coming back
from the database, the results you are seeing could very well depend on
the database backend, database encoding and the Python module you are
using to interface to that backend (since there are two options for both
MySQL and PostgreSQL).

Using non-ASCII characters consistently throughout Django on trunk is a
fairly fragile process, so you will need to be prepared to go a bit
slowly and look carefully at a few things like this.

It is exactly the reason we have been developing the Unicode branch and
that will be merged with trunk soon (although that probably isn't an
option for an existing product, since it tracks the trunk development,
so has backwards-incompatibilities with the 0.96 release, for example).

Regards,
Malcolm



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