Home > php教程 > PHP开发 > body text

将数据库中文乱码解决方法进行到底(2)

WBOY
Release: 2016-06-07 17:23:51
Original
1110 people have browsed it

     在前文的《将数据库中文乱码解决方法进行到底》,我已经作好了供测试用的数据,接下来是测试的数据记录。


运行环境:Apache/2.2.17 (Win32), PHP/5.3.3,mysql/mysql5.5.8


一、保持下面条件1、2不变,只改变条件(3)的编码



   1、数据表的字符集:CHARSET=utf8


   2、php文件编码:gb2312


   3、mysql

Related labels:
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template