1. public static void main(String[] args)throws Exception {
1. String a = "%E4%BD%86%E4%B8%8D%E6%98%AF%E4%B8%8D%E6%87%82%E4%BA%8B%23%C2%A5%23%25%C2%A5%40";
1. String b = "%E4%BD%86%E4%B8%8D%E6%98%AF%E4%B8%8D%E6%87%82%E4%BA%8B#%C2%A5#%25%C2%A5@";
1.
1.
1. System.out.println(URLDecoder.decode(a,"utf-8"));
1. System.out.println(URLDecoder.decode(b,"utf-8"));
1.
1. String encode = URLEncoder.encode("但不是不懂事#¥#%¥@","utf-8");
1.
1. System.out.println(encode);
1.
1. }
1.
```输出:
但不是不懂事#¥#%¥@
但不是不懂事#¥#%¥@
%E4%BD%86%E4%B8%8D%E6%98%AF%E4%B8%8D%E6%87%82%E4%BA%8B%23%C2%A5%23%25%C2%A5%40
如何编码后能得到b;