Google Search

Google Search

HTML/JavaScript

Thursday, September 1, 2011

foreign language characters in my mysql DB?

foreign language characters in my mysql DB?




3 down vote accepted


Is the connection to the database also UTF-8 encoded?

Give this a try: right after connecting to the mysql database, run the following query.

SET NAMES utf8;

Great! It worked wonderfully! I added $conn->query('SET NAMES utf8'); Thanks again!

mysql_query("SET NAMES utf8");

No comments:

Post a Comment