URLEncoder.encode

URL 中参数值包含中文,接收出现乱码,处理如下:

1
String encode = URLEncoder.encode("中文参数", "UTF-8");