c# - Reading special characters from URL query string -
i have situation user able enter characters want in url query string.
example:
http://localhost/default.aspx?id=a‡jljglkjg
how can accept special characters such ‡, ˆ, , † in asp.net url query string? finding when attempt retrieve these url query string these special characters gets replaced “?”.
note: user inputs these query string url.
this url wrong according rfc.
- if using browser, ecndoing required.
- if done javascript, use
encodeuricomponent
- if c# app, using
httputility.urlencode
here
Comments
Post a Comment