There are several good blogs on content negotiation in ASP.NET Web API (see for example ASP.NET Web API: How content negotiation works? ) describing how to get JSON, XML, and other response formats depending on what you ask for in a request using the Accept HTTP request header field . However, recently we added support for the header Accept-Charset which can be used by the client to indicate which character encoding it prefers the response to be encoded with. Typical encodings are UTF-8 and UTF-16 (and our built-in formatters support those) but the set is extensible to other encodings as well. Note: This is the first in a series of blogs on upcoming features that have been checked into our CodePlex source code repository but haven't yet been...(read more) ...
Go to the complete details ...