C#C
C#2y ago
2 replies
Pokey

Change ASP.NET response encoding from UTF-8 to ISO-8859-1?

Hi there,

I am building an application which requires the response
Content-Type
to be
text/plain;charset=ISO-8859-1
instead of
text/plain;charset=utf-8
.

If I force this with:
Response.ContentType = "text/plain;charset=ISO-8859-1";


ASP.NET returns a 406 to all responses. There is no
Accept
header coming from the client.

How may I achieve this?
Was this page helpful?