1. Decoding rules
Explain: Decoding rules correspond to coding rules, similar to symmetric encryption algorithm
Decoding rules: 1, numbers and letters remain the same;
2, ".", "-", "_", "*" remain the same; "+" is decoded as "" (Empty One-cell string);
3,%xy decoding according to decoding code;
2. Decoding method
Explain: The decoding method and coding method are almost
2 Methods: Decode (string s) and decode (string s,string Enc)
Decode (String s) is deprecated because it is decoded by the default encoding of the platform and relies on the platform
Decode (String s,string ENC) is recommended to use encoding corresponding encoding method for decoding, the consortium recommends encoding and decoding are used UTF-8
The above is i solve the URL parameter with Chinese Method!
The following are garbled and correct:
Garbled:
That's right:
Java.net.Decoder with java.net.Encoder solve URL parameter chinese garbled problem "2014-11-17"