导入的数据库是正确的,显出来却是乱码?解决思路

WBOY
Release: 2016-06-13 13:52:49
Original
947 people have browsed it

导入的数据库是正确的,显出来却是乱码?
我在windows下的数据库导入到linux下数据是正确的,用PHPMYADMIN显示都正常;
我的PHP网站上的数据却是乱码?请问是不是要配置php.ini里面的什么东西?望知道的老兄指点一下!

------解决方案--------------------
别说好像。你确认一下数据库用的什么编码。然后把php页面统一一下。取数据的时候加上mysql_query("set names '你的编码'"); 基本上就没问题了。

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