httpclient之post请求乱码

1
2
3
private static final String CONTENT_CHARSET = "UTF-8"; // 指定字符编码 HttpClient client = new HttpClient();

client.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET, CONTENT_CHARSET);