有没有好心人帮小弟我解决一个linux乱码有关问题(弄了一天了)

WBOY
Release: 2016-06-13 10:17:03
Original
850 people have browsed it

有没有好心人帮我解决一个linux乱码问题(弄了一天了)
我用的是ubuntu版本的linux系统,在mysql数据库中拿出来的数据是正常的中文显示,但是在php文件输入的中文在显示器上显示的确是乱码?(系统默认的是utf8编码 --改成gb2312的也不行 mysql的编码页全部都是utf8——改成gb2312的编码页不行) 这到底是什么情况啊?

------解决方案--------------------
这个和系统的编码关系不是很大吧?

主要是浏览器的编码
数据库的本身的编码
数据库的数据的编号
php文件本身的编码
php,html header contentype的编码
php访问数据库的编码set names utf8

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!