Convert latin1 to utf8 problem
Posted by: nicholas pei
Date: July 15, 2010 09:14PM

Hi guys,

I have a trouble about the charset of mysql.

In my php page, I set charset is utf8 when the data is inserted to mysql database:
mysql_query("SET NAMES 'utf8'")

the database's charset is latin1. It's ok for english.But when I tried to insert chinese to the database, most of the chars is '??????'.
How could I convert the chars to a right format?

Some can help me ?
Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
Convert latin1 to utf8 problem
3900
July 15, 2010 09:14PM
2477
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.