I have both, django and mysql set to work with UTF-8.
My base.html set utf-8 in head.
row on my db :
+----+--------+------------------------------------------------------------------+-----------------------------+-----------------------------+---------------------+ | id | psn_id | name | publisher | developer | release_date | +----+--------+------------------------------------------------------------------+-----------------------------+-----------------------------+---------------------+ | 1 | 10945- | まいにちいっしょ | Sony Computer Entertainment | Sony Computer Entertainment | 2006-11-11 00:00:00 | +----+--------+------------------------------------------------------------------+-----------------------------+-----------------------------+---------------------+
the source code generated looks like :
まいにちいっしょ
and this is wat is displayed :/
why they are not showing the chars the way in this database?
the problem is the auto escape django function …
my source code is like the one that Dominic pasted :
i simple put the tag in places there i known that may be some diff chars:
{% autoescape off %} xxxxx {% endautoescape %}and everything works like a charm… 😀
than you all
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#autoescape