get请求包含特殊字符,会造成后台解析数据时异常,可以使用encodeURIComponent()方法进行转码
String url = 'http://www.baidu.com/search?aaa=1#2?3/';
url = encodeURIComponent(url);
转码后的内容为:
http%3A%2F%2Fwww.baidu.com%2Fsearch%3Faaa%3D1%232%3F3%2F