---
title: "乱码总结"
author: "jogickis"
date: "2014-01-15T18:20:49Z"
tags: ["Java", "乱码"]
categories: ["移动开发"]
slug: "untitled"
draft: false
lastmod: "2014-01-15T18:20:49Z"
id: 2004563
url: "https://jogickis.iteye.com/blog/2004563"
---

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