MySQL Forums
Forum List  »  PHP

Re: Korean characters displaying as ???
Posted by: Ed Poor
Date: February 20, 2009 10:56AM

Whoa! I found the answer:

//Try to get MySQL to give me some UTF-8 (Unicode) characters
$change = "SET NAMES 'utf8'";
mysql_query($change) or die("The change did not work: $change");

The set names command, sent as a query, solved my problem. I found the solution here ...

http://bugs.mysql.com/bug.php?id=10377

The manual reference is ...

http://dev.mysql.com/doc/refman/5.1/en/charset-connection.html

It took me such a long time to find this that I wonder if other people having the same problem would profit from being able to see the answer.

Ed

Options: ReplyQuote


Subject
Written By
Posted
February 20, 2009 09:52AM
Re: Korean characters displaying as ???
February 20, 2009 10:56AM


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.