Question

I have a zen cart installation with 2 languages: Hungarian and Romanian. Charsets are set to utf-8, mysql field collations are utf8_general_ci and, in DB characters are ok, and I still get strange question marks instead of language specific characters. I also checked the fonts.

PS: Text that comes from the translation files(not from DB) has diacritics, DB results don't.

Was it helpful?

Solution

Your page is actually running with the following character set definition:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 

change that to UTF-8 and it should work if all the other data is also properly UTF-8 encoded.

OTHER TIPS

Make sure your default MYSQL and PHP language is also set to UTF-8. If you don't have access to your php.ini I found manually setting the Mysql language in my php script fixed it for me, check out this command

http://php.net/manual/en/mysqli.set-charset.php

$mysqli->set_charset("utf8");

should fix your problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top