C
C#4mo ago
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";
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?
2 Replies
Servator
Servator4mo ago
I just asked to AI. Maybe it helps.
No description
Pokey
PokeyOP4mo ago
Unfortunetely not, that answer is for .NET Framework
Want results from more Discord servers?
Add your server