Reputation: 969
I have a situation where the user is able to enter any characters they want in a URL query string.
Example:
http://localhost/default.aspx?ID=a‡jljglkjg
How can I accept special characters such as ‡, ˆ, and † in asp.net from a URL query string? I am finding that when I attempt to retrieve these URL query string these special characters gets replaced with a “?”.
Note: The user inputs these query string into the URL.
Upvotes: 0
Views: 5141
Reputation: 15816
See http://www.w3schools.com/tags/ref_urlencode.asp for more information about valid URLs and encoding special characters.
Upvotes: 0
Reputation: 81660
This URL is wrong according to RFC.
encodeURIcomponent
HttpUtility.UrlEncode
hereUpvotes: 1
Reputation: 68667
URLs can only be sent over the Internet using the ASCII character-set.
Those characters will always be excluded, you need to find another way to do it.
Upvotes: 0