Home  >  Article  >  Backend Development  >  从android客户端通过post方法发出汉字到Php,Php返回客户端,就出现乱码?如何解决

从android客户端通过post方法发出汉字到Php,Php返回客户端,就出现乱码?如何解决

WBOY
WBOYOriginal
2016-06-13 12:00:28870browse

从android客户端通过post方法发出汉字到Php,Php返回客户端,就出现乱码?怎么解决

本帖最后由 gunzi318 于 2014-06-20 14:03:16 编辑 如题。请问问题出现在了那里。

返回汉字通过echo 直接返回的。没有通过数据库。


------解决方案--------------------
Android那边需要什么编码,你就给什么编码就行了。
------解决方案--------------------
1:统一编码
2:采用json格式传输
Statement:
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