APP WeChat payment server development body is not the ultimate solution for utf-8 encoding

This abnormal problem, coupled with the secondary signature, wasted at least three days. The body needs to be transcoded. If the transcoded utf-8 is garbled, you must check whether the encoding of the editor itself is utf-8.
ordername=ordername.replace(" ", "");//Note that the title must be blank
try {
ordername = new String(ordername.getBytes("utf-8"));

} catch (UnsupportedEncodingException e) {
e.printStackTrace( );




Thanks for sharing http://www.oschina.net/question/573966_237517?sort=time&p=2#answers

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326679191&siteId=291194637