|
Posted by marcin on 10/14/34 11:54
I have problems with inserting Japanese chars into MySQL database. This
operation results in two completetely different strings that I can see
via phpMyAdmin:
$word: SELECT word FROM table;
INSERT $word INTO table;
Both commands are executed direclty via PHP, phpMyAdmin shows the
original word (inserted into table via phpMyAdmin) correctly and a
wrong copy (f.e. %&c/#....) of word inserted via PHP.
I preasume that the problem is PHP default coding, I tried to convert
encoding to UTF-8 by mb_convert_encoding($key, "UTF-8", "auto"); with
no success.
Navigation:
[Reply to this message]
|