//兼容url傳參 if(java.nio.charset.Charset.forName("ISO-8859-1").newEncoder().canEncode(name)){ name = new String(name.getBytes("ISO-8859-1"),"UTF8"); }java