Hi,
I'm trying to store data in languages other than English (mainly RTL languages) in MySql, the first time I've stored the data I found that it was saved like this:
??? ?????? ????? ?????? ?????? ???? ??????? ???? ?? ??????? ?? ??? ????? ????? ??? ??? ?? ??? ???? ????? ??? ??? ???? ????? ???? ????.
So I did some search, and found that a solution suggested by a guy who faced the same problem. The solution was to add this line:
mysql_query("SET NAMES 'UTF8'");
I added it and it did not show anything even the ?????, but if I tried to insert text in English, it shows in the records the text inserted and also on the web page. I've set the collation to be utf8_unicode_ci and utf8_bin, but it didn't do anything.
Is there anything I should do in HTML code, in php code, in mysql settings to make work?
Any suggestions, ideas, a better way to make work is highly appreciated.