Hi there

here is my problem:
I can't insert correctly characters encoded in UTF-8 in my database (I use phpMyAdmin to deal with the data in there)
The thing is when I check the content of my tables, I get weird characters for foreign characters. For example, when I send a japanese character with a form from my own website, I get 症治疗取 in phpMyAdmin

The page that contains my form has a UTF-8 charset and my table collation is utf8_bin.
The other thing is that when I send my request directly in phpmyadmin, all the characters are well inserted and everything is right.

So I guess I must be missing some function to deal with the data I send with my form so that it will be well UTF 8 encoded but I don't see what I should use

Thanks for your help

    try adding

    mysql_query("SET NAMES 'utf8'");

    after you connect and before you add anything to the db

      Write a Reply...