public class Test{
public static void main(String[] args) {
try {
System.out.println(URLDecoder.decode("service=direct%2F1%2Ffeequery.BillQuery%2F%24Form&sp=S1&Form1=%24RadioGroup%2C%24Submit&MONTH=201410&%24Submit=%B2%E9++%D1%AF", "gbk"));
System.out.println(new String("查 询".getBytes("gbk"),"utf-8"));
} catch (UnsupportedEncodingException e) {
};
}
}
编码转换小案例
最新推荐文章于 2024-05-16 22:23:34 发布