I have my REST web service that should receive GET encoded requests with cyrillic letters.
For example: http://www.service/srv?param1=%D1%E0%ED%EA%F2
I know that this is Windows-1251 ISO-8859-1, but as a value of input parameter in my web service function allways have something like question marks . I gues that service convert string to UTF-8.
Is it possible to recive GET request in Windows-1251 codepage?
There was a similar thread: Cyrillic letters are incorrectly encoded in the C# Web Service
The answer was to use utf-8 encoding. But im my case I cant change request to web service.
Web service description:
[OperationContract]
[WebInvoke(Method="GET", ResponseFormat=WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = @"param?p1={p1}&p2={p2}&p3={p3}…")]
string MyFunction(string p1, string p2, string p3, …);
Only solution that I can come with is:
I’m wondered why globalization tag is not working in this case.
Although this code works, I’m really appreciate any further suggestions on this matter.