We started website in intention that we only use English language and do all insertion/deletion to MySQL using English. And use PHP to escape string while writing to database.
Now the situation is our website have lot of Chinese/German/Russian users, and we are facing problem writing data into MySQL - PHP is able to write data to the database but it does some internal conversions like it replace a few characters to something different (eg. Plötzlich --> Plq$tzlich).
But if I go to phpMyAdmin and copy paste Chinese or any other language string and do insert it write exactly as it is. So suspecting is that PHP doing conversion before writing to the database.
We are in process to make it work for all language, but this is first time we are dealing with global languages in (MySQL and PHP).
If any expert could share some info that would be great and highly appreciated.
We would be really thankful if we get some expert help on this.
I would make sure your app is all in UTF-8, including all the db tables. Sounds like some part is not UTF-8.
Who do you escape your text? Maybe something like
http://www.w3schools.com/php/func_string_htmlentities.asp
could help? Where all characters are escaped into html entities.