php乱码

WBOY
Release: 2016-06-20 12:29:27
Original
843 people have browsed it

用php写的服务  接的是webservice的接口 用postman模拟请求发回来的数据都是好的 但是在把服务部署到服务器的时候 在linux上打印出来的数据就是乱码 存到数据库也是乱码 
大神求指教啊 很急


回复讨论(解决方案)

中文数据?
应该是编码问题吧。仔细检查一下。

打印出来乱码 - 说明数据编码和浏览器编码不一致
存到数据库也是乱码 - 存的时候没指定编码,或者存之前就乱码了?

可以贴出代码来分析分析

已经解决了 谢谢

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!