this is a long known problem which i’ve solved on several projects but this time
nothing seems to help.
As i play with it the hebrew chars sometimes show up as question marks (???? ????)
and sometimes as plain Gibrish (nonsense).
All my tables are set to Utf-8, as in my meta.
I have tried running :
mysql_query("SET NAMES 'hebrew' ")
and
mysql_query("SET NAMES 'utf-8' ")
trying setting header with php:
header('Content-Type: text/html; charset=utf-8');
But Nothing seems to help.
Any clue what i should do?
*EDIT *
Well, thanks to Bekka’s answer, the problem was the correct syntax is UTF8 not UTF-8.
You have a mistake in your syntax. Try the following instead:
Though I would advise you to learn a different database engine, such as PDO