How to get Unicode characters from Request in ASP.NET?

On my current project my asp.net 2.0 application gets called using a url which contains unicode characters. For example: somepage.aspx?p=Möll
When I try to get the text from the Request object:
string t = Request["p"];
The result (t) does not contain the "ö" character althought the Request.RawUrl property does contain the correct character.

Does anybody know how to get the correct unicode characters from the request object?
verhartAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Munawar HussainPrincipal Software EngineerCommented:
hi,
you may use encoding and decoding to pass such data .
kindly check this reply .. I have alreay answered almost same qestion .. hope it would help you

http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_22941958.html

thanks
0
verhartAuthor Commented:
I don't think this is going to work; I have no control over the calling application: it just adds the characters to the url that calls my page. But I'll give it a try later today.

My solution for now is the following, but it doesn't feel 'right' though.
string t = System.Text.RegularExpressions.Regex.Match (Request.RawUrl, "&p=.*&").Value;
if (t == "")
{
t = System.Text.RegularExpressions.Regex.Match(Request.RawUrl, "&p=.*&").Value;
}

Open in new window

0
verhartAuthor Commented:
Oeps, should be:
string t = System.Text.RegularExpressions.Regex.Match (Request.RawUrl, "&p=.*&").Value;
if (t == "")
{
t = System.Text.RegularExpressions.Regex.Match(Request.RawUrl, "&p=.*").Value;
}

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.