PHP Chinese garbled

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Recently, boring to do PHP pages MySQL

We found that Chinese garbled

Finally, we record, for future reference


1 to establish database, UTF-8 code

2 when you build PHP file UTF-8 code

3 prevent garbled data transmission mysql_query('set names utf8');

4 in the static page plus <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />


Pay attention to the above four points should be sufficient.!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Boyce at October 27, 2013 - 6:34 PM