Turn: Every Web developer should know about URL Encoding

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.