1.字符串转码utf-8 URLEncoder.encode(card, "UTF-8"); 2.解码 URLDecoder.decode(msg, "UTF-8") 转载于:https://www.cnblogs.com/love-dream-88/p/11413212.html