3

I have created an API in ASP.NET Core and now I'm debugging it with Postman. When I make a POST, I get an error that says:

InvalidOperationException: Invalid non-ASCII or control character in header: 0x05D0

The application must support that language. Error with non-ascii input

The code ACTUALLY WORKS, and successfully adding the entity, but yet returns this error. Is there a way to solve this issue?

Natan ZB
  • 191
  • 1
  • 13
  • 1
    the RFC for HTTP only allows ascii characters. That doesn't mean you can't support any given language, but your localized text should be URL encoded. – Erik Funkenbusch Aug 15 '16 at 13:43

1 Answers1

7

As the error suggests, HTTP doesn't support non-ASCII characters in the header.

Try checking your headers tab and remove any non-ASCII characters.

Conyc
  • 460
  • 1
  • 4
  • 10