Reputation: 1289
In my REST service, it is required to take parameters having special characters like Ä, Å etc.
The problem is that such characters get converted to "?" by the time it hits the method and gets assigned to the variable. While debugging, I can see that the IncomingRequest.UriTemplateMatch.RequestUri has the correct value but IncomingRequest.UriTemplateMatch.QueryParameters has "?"
The UriTemplate looks like this: /stores?city={city} and values like /stores?city=BOLLNÄS doesn't work.
Any pointers on how to handle these characters in input would help.
Upvotes: 1
Views: 1570
Reputation: 364279
I guess the main problem here can be that those special characters are not valid in URL and you must encode them. Try this: /stores?city=BOLLN%C3%84S
Upvotes: 2