Special character escaping encoding in URL URLsDecember 29, 2017 09:10:57Hits:Special character escaping encoding in URL URLsCharacter-URL encoded valueSpaces-%20"-%22#-%23%-%25&-%26(-%28)-%29+-%2B,-%2c/-%2F:-%3a; -%3b=-%3d>-%3e? -%3f@-%40\-%5C|
Http://www.imkevinyang.com/2009/08/%E8%AF%A6%E8%A7%A3javascript%E4%B8%AD%E7%9A%84url%E7%BC%96%E8%A7%A3%E7%A0%81.htmlSummaryIn this paper, we mainly introduce the related problems of URI codec, and explain in detail which characters in URL coding
The solution of URL passing parameters (special characters) in JavaScript and the introduction of transcoding decoding some symbols cannot be passed directly in the URL, and if you want to pass these special symbols in the URL, use their encoding.
Complete URL Chinese Encoding
I thought this would work.
Public static string strtourl (string Str ){String result = NULL;Try {Result = urlencoder. encode (STR, "UTF-8"); // gb2312} Catch (unsupportedencodingexception e ){// Todo auto-generated
From: http://hi.baidu.com/jrckkyy/blog/item/d86c12ecea120c30279791be.html
In addition to common letters, numbers, Chinese characters, and special characters, character escaping is used."+" The + sign in the URL indicates space % 2BThe space in
StudyingProgramEnter a keyword to send the keyword to search engines such as Google and Yahoo, and then open the result webpage. The principle is simple. For exampleGoogle search for China, the search results page url is
A program is being studied. If you enter a keyword, you can send it to Google, yahoo, and other search engines to search for it and then open the result webpage. The principle is simple. For example, in Google search for China, the search result
In the previous article: [iOS] How to Use JS to call iOS functions in WebApp, I mentioned how to use JS to call iOS Internal functions by modifying the URL.
One problem is the encoding problem. For example, if a pop-up window is called via URL,
URL encodingURL encoding is also commonly referred to as a percent-encoding (URL encoding,also known as percent-encoding) because it is encoded in a very simple way, using the% percent sign plus the two-bit character--0123456789abcdef-- Represents a
As we all know, when searching for Chinese Characters in "Baidu.com", for example, "Old Three" Get the URL string: http://www.baidu.com/s? WD = % C0 % CF % C8 % FD & CL = 3, which is clearly encoded. What's going on?
Because some symbols cannot be
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.