Re: Convert latin1 to utf8 problem
What bytes do you have on your php page? How do you know?
"In my php page, I set charset is utf8
when the data is inserted to mysql database:
mysql_query("SET NAMES 'utf8'")" -- that declares that the bytes you have in php are really characters encoded in utf8.
"the database's charset is latin1." -- OK, but have you overridden it on at the CREATE TABLE? Please SHOW CREATE TABLE foo;
Subject
Views
Written By
Posted
3882
July 15, 2010 09:14PM
Re: Convert latin1 to utf8 problem
2465
July 28, 2010 11:59PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.