Skip to main content

HTML5 - URL Encoding

Untitled Document URL encoding is the practice of translating unprintable characters or characters with special meaning within URLs to a representation that is unambiguous and universally accepted by web browsers and servers. These characters include:
  • ASCII control characters - Unprintable characters typically used for output control. Character ranges 00-1F hex (0-31 decimal) and 7F (127 decimal). A complete encoding table is given below.
  • Non-ASCII control characters - These are characters beyond the ASCII character set of 128 characters. This range is part of the ISO-Latin character set and ncludes the entire "top half" of the ISO-Latin set 80-FF hex (128-255 decimal). A complete encoding table is given below.
  • Reserved characters - These are special characters such as the dollar sign, ampersand, plus, common, forward slash, colon, semi-colon, equals sign, question mark, and "at" symbol. All of these can have different meanings inside a URL so need to be encoded. A complete encoding table is given below.
  • Unsafe characters - These are space, quotation marks, less than symbol, greater than symbol, pound character, percent character, Left Curly Brace, Right Curly Brace , Pipe, Backslash, Caret, Tilde, Left Square Bracket , Right Square Bracket, Grave Accent. These character present the possibility of being misunderstood within URLs for various reasons. These characters should also always be encoded. A complete encoding table is given below.
The encoding notation replaces the desired character with three characters: a percent sign and two hexadecimal digits whose correspond to the position of the character in the ASCII character set.

Example:

One of the most common special characters is the space. You can't type a space in a URL directly. A space position in the character set is 20 hexadecimal. So you can use %20 in place a space when passing your request to the server.

Popular posts from this blog

आर्टिफिशियल इंटेलिजेंस (AI): भविष्य की दिशा

आज का युग विज्ञान और तकनीक का युग है। इस तकनीकी क्रांति में आर्टिफिशियल इंटेलिजेंस (Artificial Intelligence – AI) एक महत्वपूर्ण भूमिका निभा रहा है। AI का अर्थ है ऐसी मशीनें या कंप्यूटर प्रोग्राम बनाना जो इंसानों की तरह सोच सकें, समझ सकें और निर्णय ले सकें। आज AI केवल एक कल्पना नहीं, बल्कि हमारे दैनिक जीवन का अहम हिस्सा बन चुका है। AI का उपयोग हम रोज़मर्रा की ज़िंदगी में कई रूपों में करते हैं। जब हम मोबाइल में वॉयस असिस्टेंट से सवाल पूछते हैं, ऑनलाइन शॉपिंग में प्रोडक्ट सुझाव देखते हैं, या गूगल मैप से रास्ता खोजते हैं—इन सभी में AI काम करता है। सोशल मीडिया प्लेटफॉर्म पर हमें जो वीडियो या पोस्ट दिखती हैं, वे भी AI की ही देन हैं। इस प्रकार AI हमारे जीवन को आसान और तेज़ बना रहा है। शिक्षा के क्षेत्र में AI ने सीखने का तरीका बदल दिया है। आज छात्र AI की मदद से कठिन विषयों को आसान भाषा में समझ सकते हैं। ऑनलाइन पढ़ाई, पर्सनल लर्निंग ऐप्स और वर्चुअल टीचर AI पर आधारित हैं। इससे छात्रों को अपनी गति से सीखने का अवसर मिलता है। प्रतियोगी परीक्षाओं की तैयारी में भी AI सहायक साबित हो रहा है। स...

जाती के मुट्ठी में भारतीय लोकतंत्र

अभी कुछ दिन पहले ही उपराष्ट्रपति जी ने कहा था कि आर्थिक और तकनीकी मोर्चे पर देश को महत्वपूर्ण कामयाबी मिली है, लेकिन जाति, समुदाय और लिंग के आधार पर भेदभाव जिस तरह से बढ़े है वो सबसे बड़ी चिंता का विषय हैं। देश से जाति व्यवस्था खत्म होनी चाहिए और भारत का भविष्य जातिविहीन और वर्गविहीन होना चाहिए। उन्होंने गिरजाघरों, मस्जिदों और मंदिरों के प्रमुखों से जाति के आधार पर होने वाले भेदभाव को खत्म करने के लिए काम करने को कहा है। देश कि प्रगति में बाधा है जाति की समस्या    जाति प्रथा एक सामाजिक कुरीति है। ये देश का दुर्भाग्य ही है जो देश को आजाद हुए 75 साल होने वाले है पर जाति कि सोच से बाहर नही निकल पाए है। हालांकि एक लोकतांत्रिक देश के नाते संविधान के किसी अनुच्छेद में राज्य के द्वारा धर्म, मूलवंश, जाति, लिंग, जन्म स्थान के आधार पर नागरिकों के प्रति जीवन के किसी क्षेत्र में भेदभाव नहीं किए जाने की बात कही ही गई होगी। लेकिन सरकार दोनों बातें बोलती है जहाँ एक तरफ जातिवाद को खत्म करने कि बात करते है तो दूसरी तरफ   सरकारी औहादे के लिए आवेदन या चयन की प्रक्रिया के वक्...

HTML5 - Web Storage

HTML5 introduces two mechanisms, similar to HTTP session cookies, for storing structured data on the client side and to overcome following drawbacks. Cookies are included with every HTTP request, thereby slowing down your web application by transmitting the same data. Cookies are included with every HTTP request, thereby sending data unencrypted over the internet. Cookies are limited to about 4 KB of data . Not enough to store required data. The two storage's are  session storage  and  local storage  and they would be used to handle different situations. The latest versions of pretty much every browser supports HTML5 Storage including Internet Explorer. Session Storage The  Session Storage  is designed for scenarios where the user is carrying out a single transaction, but could be carrying out multiple transactions in different windows at the same time. Example For example, if a user buying plane tickets in two different win...