Home > Backend Development > PHP Tutorial > 请问php+mysql中文字符乱码有关问题,麻烦大家给提提建议

请问php+mysql中文字符乱码有关问题,麻烦大家给提提建议

WBOY
Release: 2016-06-13 11:34:50
Original
731 people have browsed it

请教php+mysql中文字符乱码问题,麻烦大家给提提建议
网站用php+mysql做的,租用的服务器是linux的,我的页面用的gb2312的字符编码,创建数据表时用了"set names gb2312",客户自己提交的中文有的字符显示不出来,有的乱码。


想知道我应该怎么设置?(我网站的客户都是国内的,就想能正常添加和显示中文)

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