Hello!
There is a controller and an action which receives one param through GET, approximately here so:
www.site.com/controller/action/?query=параметр <- Russian word
Problem:
Example 1: www.site.com/controller/action/?query=Пример <- Russian word
Example 2: www.site.com/controller/action/?query=Example
Reading param:
var param = Request.QueryString["query"];
Result 1:
param = "������"
The data from debugger:
Request.RawUrl = "/controller/action/?q=%CF%F0%E8%EC%E5%F0"
QueryString = {q=%ufffd%ufffd%ufffd%ufffd%ufffd%ufffd}
Result 2:
param = "Example"
The data from debugger:
Request. RawUrl = "/controller/action/?q=Example"
QueryString = {q=Example}
ContentEncoding is setted into UTF-8.
Web.config:
<globalization requestEncoding="utf-8" responseEncoding="utf-8"
fileEncoding="utf-8" />
Question: How can i correctly get param with russian word?