The Internet standards define Unsafe character for URLs , Why ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

The Internet standards define Unsafe character for URLs , Why ?

In URL Encoding . For example space character

16th Jan 2017, 5:36 AM
Mohammed Al-Ajlouni
Mohammed Al-Ajlouni - avatar
5 Answers
+ 4
Space is %20 right? What are unsafe characters?
16th Jan 2017, 7:06 AM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 2
But there is another unsafe char such as (^)
16th Jan 2017, 7:08 AM
Mohammed Al-Ajlouni
Mohammed Al-Ajlouni - avatar
+ 2
Unsafe characters Includes the blank/empty space and " < > # % { } | \ ^ ~ [ ] `
16th Jan 2017, 7:41 AM
ezra
+ 2
Characters can be unsafe for a number of reasons. The space character is unsafe because significant spaces may disappear and insignificant spaces may be introduced when URLs are transcribed or typeset or subjected to the treatment of word-processing programs. The characters “<” and “>” are unsafe because they are used as the delimiters around URLs in free text; the quote mark (“"”) is used to delimit URLs in some systems. The character “#” is unsafe and should always be encoded because it is used in World Wide Web and in other systems to delimit a URL from a fragment/anchor identifier that might follow it. The character “%” is unsafe because it is used for encodings of other characters. Other characters are unsafe because gateways and other transport agents are known to sometimes modify such characters. These characters are “{”, “}”, “|”, “\”, “^”, “~”, “[”, “]”, and “`”.
16th Jan 2017, 7:42 AM
ezra
16th Jan 2017, 7:46 AM
ezra