I am trying to store both English and Chinese in different fields in a single MySQL table.
lang1 for English, lang2 for Chinese.
I tried both UTF8_general_ci and UTF8_unicode_ci for the tables character set.
The Html page for input is using UTF8 as well. But for some reason the chinese characters come back as ???. Anyone know why this could be happening? I copy and pasted the chinese characters from a UTF8 page as well.
EDIT:
Request Headers for the Input page:
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
The page itself sets:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
EDIT:
It looks like after setting the field lang2 to utf8_general_ci, it is storing the characters properly. I was setting the table and the database collation to utf8 but missed the specific field.
here is brief explanation for mysql character set for chinese language.
http://www.haidongji.com/2007/10/04/character-set-and-collation-for-simplified-chinese-mysql/
http://dev.mysql.com/doc/refman/5.1/en/faqs-cjk.html#qandaitem-B-11-1-3
http://www.dodoskido.com/archives/003040-mysql-chinese-character-fix-or-how-to-make-utf8-work-for-you-pages.html