[Answered ]-Information seemingly coming out of mysqldb incorrectly, python django

2👍

A little browsing of already-asked questions would have led you to UTF-8 latin-1 conversion issues, which was asked and answered yesterday.

BTW, I couldn’t remember the exact title, so I just googled on django+’\222\222\223\225′ and found it. Remember, kids, Google Is Your Friend ™.

0👍

Django uses UTF-8, unless you define DEFAULT_CHARSET being something other. Be aware that defining other charset will require you to encode all your templates in this charset and this charset will pop from here to there, like email encoding, in sitemaps and feeds and so on. So, IMO, the best you can do is to go UTF-8, this will save you much headaches with Django (internally it’s all unicode, the problems are on the borders of your app, like templates and input).

👤zgoda

Leave a comment