my database is in UTF8, but i have foreign words stored in it. such as:
Mörda Dig Själv
Självdestruktivitetens
D'une Mère à Sa Fille
all copy-pasted from Excel
on the website they actually appear ok, but if i look at these records in DB thru MySQL Workbench, they don't look right:
Mörda Dig Själv...
Självdestruktivitetens
i'm not sure whether they are stored correct and MySQL terminal doesn't display them correctly or they aren't stored correctly and Chrome treating them right.
i tried to use Encoding object created by Sebastián Grignoli here, but it doesn't make any difference to DB or Chrome (in particular toUTF8
, fixUTF8
and UTF8FixWin1252Chars
methods)
how can i ensure that foreign letters treated correctly in DB?
update:
i have exported all data from DB to csv, and letters don't look correct:
Mörda Dig Själv...
Självdestruktivitetens