Problem with garbled Chinese characters when connecting to Mysql database using PHP_PHP Tutorial

WBOY
Release: 2016-07-21 14:54:49
Original
773 people have browsed it

When linking to the mysql database in DW, garbled characters "????" appear in the character set created

mysql_query("SET NAMES 'utf8'");

gbk

mysql_query("SET NAMES 'gbk'");



http://www.bkjia.com/PHPjc/364557.html

www.bkjia.com

http: //www.bkjia.com/PHPjc/364557.htmlTechArticleWhen linking the mysql database in DW, the character set text is garbled? ? ? ? Just when Chinese characters are garbled, add this utf8 sentence after the link database: mysql_query(SET NAME...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!