0

Due to language adaptation I need to place some "special" chars in a custom header (chars like é, á, í, ç, and others)...
On the server side i'm using ASP.NET MVC.
It all works fine on chrome.
But in Safari... I can't figure out witch encoding safari uses...

I tried:

  • UTF-8,
  • UTF-16,
  • ASCII,
  • Url Encode,
  • a few ISO's

but alert(headerValue) always returns crazy chars...

can anyone tell me which encode to use?

Leonardo
  • 10,737
  • 10
  • 62
  • 155

1 Answers1

0

There was a specification in the past regarding HTTP header encoding: RFC 2047. But it seems not to be implemented anymore and even removed.

Here are some related links:

In your case, perhaps you could use URL-encoded string for the value of this custom header.

Hope it helps you, Thierry

Community
  • 1
  • 1
Thierry Templier
  • 198,364
  • 44
  • 396
  • 360
  • yeah... url-encoding also didn't work... im starting to assume that safari won't accept any non-regular char... I would love to have an authority answer here... something in the lines of a apple article or something... – Leonardo Oct 02 '15 at 13:14