2019/01/09:
项目中使用GetMethod get = new GetMethod(url);
当URL中含有中文时,应该先对用中文的参数进行URLEncoder.encode(“参数”,“utf-8”)转码。
附:不同编码格式的字符串的转换
1.GBK字符串转UTF-8字符串
new String(GBK字符串.getBytes("UTF-8"), "UTF-8");
2.UTF-8字符串转GBK字符串
new String(UTF-8字符串.getBytes("GBK"), "GBK");