URL is a must-know thing for every Web developer, but there are some sayings about the point where it should be, for example, the URL cannot be too long, and anyone who needs encode to pass non-ascii characters knows it. Is there any deeper content? Some people have translated an article on the open-source Chinese website, not to mention the translation,
URL is a must-know thing for every Web developer, but there are some sayings about the point where it should be, for example, the URL cannot be too long, and anyone who needs encode to pass non-ascii characters knows it. Is there any deeper content? Some people have translated an article on the open-source Chinese website, not to mention the translation,
URL is a must-know thing for every Web developer, but there are some sayings about the point where it should be, for example, the URL cannot be too long, and anyone who needs encode to pass non-ascii characters knows it. Is there any deeper content?
Someone has translated an article on the open-source Chinese website. without talking about the translation, the length of the article is scary ..
The content is very long. I only provide a link here. Of course, for your convenience, I also have a PDF file for download.
Source Address: http://www.oschina.net/translate/what-every-web-developer-must-know-about-url-encoding
Address: http://blog.lunatech.com/2009/02/03/what-every-web-developer-must-know-about-url-encoding
Every web developer should know about url encoding.
Here is a summary directory:
- Introduction
- General URL syntax
- Http url syntax
- URL syntax
- Common URL traps
- What type of character encoding is used?
- Reserved character sets for different fragments
- Not the reserved character set you want
- URLs that cannot be parsed After decoding
- The decoded URL cannot be re-encoded in the same format.
- Correctly process URLs in Java
- Do not use java.net. URLEncoder or java.net. URLDecoder to encode the entire URL
- To build a URL, encode each part
- URI. getPath () cannot ensure structured data is provided
- The URI class of Apache Commons HTTPClient cannot always be correctly processed.
- Address URL encoding issues at each layer of Web Applications
- Always encode the URL when creating a URL
- Make sure that your URL rewriting filter processes URLs correctly.
- Correct use of the Apache mod-rewrite Module
-
Conclusion
Original article address: Go: Every Web developer should know about URL encoding. Thank you for sharing it with the original author.