客户端中文乱码问题

cnsi 2015-11-02
RopClient ropClient = new DefaultRopClient(SERVER_URL, APP_KEY, APP_SECRET);
ResendMsgRequest resendMsgRequest = new ResendMsgRequest();
resendMsgRequest.setMsgId("中文");
CompositeResponse response = ropClient.buildClientRequest().post(resendMsgRequest, SimpleResponse.class, "sendMsg.resend", "1.0");

测试用的很简单的request,里面就一个字段

要是服务端方法要求前面就会报签名无效的错误
服务端改为不要签名获取到的值是乱码

客户端的编码用GBK和UTF-8试过都一样的问题
stamen 2015-12-09
测试运行配置一下,添加VM参数:
  -Dfile.encoding=UTF-8
Global site tag (gtag.js) - Google Analytics