我正进入(状态 ?????我的java中的其他语言字符?

时间:2015-03-03 10:02:33

标签: java api character-encoding url-encoding

我将json数据传递给服务器(虽然API),其中包含日语或印地语字符。但我得到了????对于服务器端的那些字符。我尝试使用Content-Type作为application / x-www-form-urlencoded发送。

客户代码:

postMethod = new PostMethod(finalURL);
if (data != null && data.length() > 0) {
    postMethod.setParameter("jsonData", data);
}
HttpClient client = new HttpClient();
int status = client.executeMethod(postMethod);
System.out.println(status);
responseBody = postMethod.getResponseBodyAsString();

0 个答案:

没有答案
相关问题