乱码总结

  • 使用POST方法,服务器接收的中文乱码,解决方法:
    客户端:URLEncoder.encode(json,"UTF-8")
    服务器:new String(URLDecoder.decode(json,"utf-8"))

猜你喜欢

转载自jogickis.iteye.com/blog/2004563