Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9048459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T12:09:42+00:00 2026-06-16T12:09:42+00:00

I have my REST web service that should receive GET encoded requests with cyrillic

  • 0

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, …);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T12:09:44+00:00Added an answer on June 16, 2026 at 12:09 pm

    Only solution that I can come with is:

     PropertyInfo[] inf = WebOperationContext.Current.IncomingRequest.GetType().GetProperties(BindingFlags.NonPublic | BindingFlags.Instance);
                    HttpRequestMessageProperty val = (HttpRequestMessageProperty)inf[0].GetValue(WebOperationContext.Current.IncomingRequest, null);
                    string paramString = HttpUtility.UrlDecode(val.QueryString, Encoding.GetEncoding(1251));
                    Uri address = new Uri("http://server.ru/services/service.svc/reg?" + paramString);
    
                    p1 = HttpUtility.ParseQueryString(address.Query).Get("p1");
                    p2 = HttpUtility.ParseQueryString(address.Query).Get("p2");
                    p3 = HttpUtility.ParseQueryString(address.Query).Get("p3");
                    ...
    

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a REST web service with Jersey Server (that totally rocks !).
I am creating a PhoneGap application that should call some REST web service methods
I have a REST web service that I would like to take a URL
Greetings, I have a Cuke test that is testing a rest web service w/
We have a ReST Web Service that uses POST - to insert data into
I have an ASP.NET MVC web application that makes REST style web service calls
So I have this service class that utilize Restkit to consume REST web services.
I have written a REST web service. I want to get some performance statistics
I have created a REST web service and successfully used it with a client.
I want to build a REST web service on app engine. Currently i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.