编码 URLEncoder.encode( URL, "UTF-8" ) 解码 URLDecoder.decode( URL, "UTF-8" ) (小提示: cookie中存放中文也需要使用上面的方法进行编码和解码)