我正在尝试为我的应用程序启用多语言支持,该应用程序使用HTTP post上传新消息。为了支持日语和其他非拉丁语系的语言,我需要做什么? 我当前的代码大致如下:
//note the msg string is a JSON message by the time it gets here...
private String doHttpPost(String url, String msg)
throws Exception {
HttpPost post = new HttpPost(url);
StringEntity stringEntity = new StringEntity(msg);
post.setEntity(stringEntity);
return execute(post);
}