table 'abc' data : tid title 1 வெள்ளிக்கிழமை ஐ. 2 கோலாகல தொடக்க $sql=mysql_query("select title from abd where tid='1'"); $row=mysql_fetch_array($sql); $title = $row['title']; echo $title;
????????????????
வெள்ளிக்கிழமை ஐ.
<?php mysql_query ("set character_set_results='utf8'"); $sql=mysql_query("select title from abd where tid='1'"); $row=mysql_fetch_array($sql); $title = $row['title']; echo $title; ?>
尝试在mysql_connect像这样的函数之后设置字符编码:
mysql_connect
mysql_query ("set character_set_client='utf8'"); mysql_query ("set character_set_results='utf8'"); mysql_query ("set collation_connection='utf8_general_ci'");