Jamina1
06-12-2008, 09:42 AM
Hello!
Our company has recently expanded our operations into China, and thus we're starting to get vendors whose contact information is only available in chinese. We have a database that contains information on all our vendors, and a website in PHP that pulls it out and displays it nicely.
Our problem currently is this -
With standard MySQL queries such as INSERT INTO table ('some chinese characters here') the resulting data, when viewed through PHPMyAdmin is garbled. If edited after the fact using PHPMyAdmin, the chinese characters are entered and show up properly. This table also needs to be able to store data in English simultaneously, sometimes in the same rows.
I've added the mysql_query("SET NAMES 'utf-8'"); and mysql_query("SET CHARACTER SET 'utf-8'"); at the beginning of our queries, but it hasn't helped at all. Also, the rows are all set to collation 'utf_unicode'
I'm at wits end, as I have about 100 records I need to enter and I don't want to have to do them by hand one at a time.
Our company has recently expanded our operations into China, and thus we're starting to get vendors whose contact information is only available in chinese. We have a database that contains information on all our vendors, and a website in PHP that pulls it out and displays it nicely.
Our problem currently is this -
With standard MySQL queries such as INSERT INTO table ('some chinese characters here') the resulting data, when viewed through PHPMyAdmin is garbled. If edited after the fact using PHPMyAdmin, the chinese characters are entered and show up properly. This table also needs to be able to store data in English simultaneously, sometimes in the same rows.
I've added the mysql_query("SET NAMES 'utf-8'"); and mysql_query("SET CHARACTER SET 'utf-8'"); at the beginning of our queries, but it hasn't helped at all. Also, the rows are all set to collation 'utf_unicode'
I'm at wits end, as I have about 100 records I need to enter and I don't want to have to do them by hand one at a time.