I am trying to store and view greek characters from/to a Mysql db.
I want to use utf8 encoding i alter my db with the following command:
ALTER DATABASE el CHARACTER SET utf8 COLLATE utf8_general_ci
Now when i am trying to create an article i see the following error:
When i am trying to fetch the article from my db i see something like:
mysql> select * from article_article
-> ;
+----+------------+----------+-------------+----------------------------------------------------------------------------------+----------+------+-------+-------+--------------+---------------------+---------------------+-----------+
| id | submenu_id | title | url | body | image_id | hits | votes | grade | publisher_id | time_upload | last_modified | published |
+----+------------+----------+-------------+----------------------------------------------------------------------------------+----------+------+-------+-------+--------------+---------------------+---------------------+-----------+
| 1 | 1 | ???????? | ssss-d-ssss | <p>ελληνικ?</p>
<p> </p>
<p>?</p> | 9 | 0 | 0 | 2.5 | 1 | 2013-04-11 10:39:30 | 2013-04-11 11:02:01 | 1 |
+----+------------+----------+-------------+----------------------------------------------------------------------------------+----------+------+-------+-------+--------------+---------------------+---------------------+-----------+
1 row in set (0.00 sec)
I use tinymce for bodyfield..(Tinymce save greek characters very bad)
I also check that in admin page something like the following is missing:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
How can i configure django for utf8 format? How can i configure tinymce for Emding Greek Chars normally?
Edit: changing the collate of the field with mysql commands solve the problem.
Also changing entity_encoding
from named
to raw
in tiny_mce.js solve and the second problem.The only problem now is that the warning doesn't disapear :(