Hey,
I have a little problem with django encoding. I have got everything in
the DB set as utf8. Now when I get them from db with django, the
encoding gets broken. For some reason django "thinks" (maybe knows)
the data is latin1, which wouldnt be a problem if I would tell him to
use latin1, which fixed encoding in templates.. Now here comes the
funny stuff.
But since then I wasnt able to edit anything, because I get the
classic decoding error. So I set it back to utf8, everything is
broken, but I can edit stuff. Now when I edit the broken string, it
will be saved, BUT when I get it out with PHP its, again, latin1.
So this is what happen:
get string from DB with PHP - its utf8
get string from DB with Django - its latin1
save with Django and get it with PHP - its latin1
I cant figure where the problem is. Maybe its the DB, but I dont know
"how" to fix it, because no matter what I do it will break either
Django or PHP. I have tried to convert the data to utf8, but it still
the same.
Here are some settings, maybe it helps:
DATABASE_OPTIONS = {
'use_unicode': True,
'charset': 'utf8',
}
Any ideas?
Regards
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
django...@googlegroups.com.
To unsubscribe from this group, send email to
django-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.