Just when Chinese characters are garbled, add this sentence after the link database:
utf8
mysql_query("SET NAMES 'utf8'");
gbk
mysql_query("SET NAMES 'gbk' ");
http://www.bkjia.com/PHPjc/321434.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321434.htmlTechArticleWhen Chinese characters are garbled, add this utf8 sentence after the link database mysql_query("SET NAMES 'utf8 '"); for gbk mysql_query("SET NAMES 'gbk'");...