rezometz / paiji2

student social portal at Supélec, Metz
GNU Affero General Public License v3.0
7 stars 1 forks source link

😢 unicode chars in comments/shoutbox appear as ???? or ? or … on the prod website #64

Closed LGD-Fr closed 9 years ago

LGD-Fr commented 9 years ago

SQL problem ? Everything goes right on the «manage.py» dev server.

LGD-Fr commented 9 years ago

Fixed with:

ALTER DATABASE paiji2 CHARACTER SET = 'utf8' COLLATE = 'utf8_general_ci';

Then, for each table:

ALTER TABLE table CONVERT TO CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';

See https://mariadb.com/kb/en/mariadb/setting-character-sets-and-collations/

luc-- commented 9 years ago

Thx