HttpUtility.UrlEncode will not be encoded! at 21

HttpUtility.UrlEncode("!!!test", Encoding.GetEncoding("windows-1251")) 

He does not code ! in %21 - why?

+7
source share
1 answer

Because it is a valid character at the URL and does not need to be encoded.

+11
source

All Articles