My ASP.net web application is getting a request from another application with a querystring named title.
Note: The query string is a french word having accent characters.
The text “Aperçu du régime” has encoded using “ISO-8859-15” encoding to produce the querystring text.
Problem
When i access the querystring using
Request.QueryString["title"]
I will get a decoded text which will not have the accent characters.
Eg: Aper�u du r�gime
So my question is, is there any method (eg:metadata) in ASP.Net to tell server either not
to decode or decode with a specific decoder Eg: “ISO-8859-15”
Once I am able to get the exactly same querystring text, i can use HttpUtility.UrlDecode to generate the actual french text.
You could use the
<globalization>element in your web.config to specify the request encoding: