byte[] bytes = msg.getContent().getBytes("GBK");
String str = new String(bytes, "UTF-8");
ShortMessageService.emppApi.submitMsgAsync(str,
new String[] { msg.getMobile() },
EMPPConfig.EMPP_ENTERPRISEID);然后在本地的Windows系统下使用发送短信正常,然后在ubuntu下发送短信就变成乱码,求解,大神求解!
String str = new String(bytes, "UTF-8");
ShortMessageService.emppApi.submitMsgAsync(str,
new String[] { msg.getMobile() },
EMPPConfig.EMPP_ENTERPRISEID);然后在本地的Windows系统下使用发送短信正常,然后在ubuntu下发送短信就变成乱码,求解,大神求解!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货