M
M
MilkyCoder2014-12-19 12:27:31
ASP.NET
MilkyCoder, 2014-12-19 12:27:31

How to read the value of the url parameter in Russian in ASP.NET?

For example http://site.com?action=add&name=Vasya instead of a name in QueryString some hieroglyphs. I have been programming in ASP.NET for many years, I encountered this problem for the first time and was very surprised ... It would seem that the task is banal, but I have not found a solution yet. Temporarily stuffed parameters into POST.
The URL on the server looks like this:
localhost:15914/main.ashx?action=directorAddManage... The
URL on the browser looks like this:
http://localhost:15914/main.ashx?action=directorAd...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Elizariev, 2014-12-19
@effetto

In the presented topic there is a solution. True, the Arabic language is considered, but the solution also works for the Russian language.

D
Denis Antonenko, 2015-01-29
@dabrahabra

Pavel Elizariev correctly noted that you need Uri.EscapeDataString. It's not a shorthand, it's an escaped string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question