【发布时间】:2012-02-13 08:18:33
【问题描述】:
我尝试通过 json 发送日文字母,然而,返回的 json 值为"jspString":"???????"。我究竟做错了什么?谢谢!
JSONObject info = new JSONObject();
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
info.put("japString", "よやかなゆひま");
nameValuePairs.add(new BasicNameValuePair("info", info.toString()));
postCard.setEntity(new UrlEncodedFormEntity(nameValuePairs));
postResponse = postCardClient.execute(postCard);
postResponseEntity = postResponse.getEntity();
String printResult = EntityUtils.toString(postResponseEntity);
【问题讨论】:
标签: json