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

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

WBOY
Release: 2016-06-13 12:00:28
Original
924 people have browsed it

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

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

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


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