Re: Chinese Charset is displayed as '????'
Posted by: William Ng
Date: March 05, 2005 03:54AM

im using php and i added lines 5 and 6 during connection and everything works!
Hope this'll help...

1 <?php
2 $link = mysql_connect($host,$usr,$pwd);
3 mysql_select_db($db);
4 if (mysql_error()) { print "Database ERROR: " . mysql_error(); }
5 mysql_query("SET CHARACTER SET utf8", $link);
6 mysql_query("SET NAMES 'utf8'", $link);
7 ?>

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Chinese Charset is displayed as '????'
8620
March 05, 2005 03:54AM
3885
November 03, 2005 01:55AM
19238
January 18, 2007 09:47PM
5234
October 24, 2005 11:41PM


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.