0

I am trying to set a custom header, everything works fine untill I set the header value with a Japanese string.enter image description here

Can anyone help me how to allow the Japanese value in header

System: Laravel + PHP 7 + Apache server

gk.
  • 338
  • 5
  • 15

1 Answers1

1

This question is answered in the link below. But the short answer is that it probably isn't going to work as HTTP headers were primarily designed with ASCII in mind. That said, if you control all the services end to end, you might be able to modify them to accept what you want.

Can I use Unicode characters in HTTP headers?

Jason
  • 2,940
  • 2
  • 21
  • 34
  • After some investigation I ended up with same conclusion and as a solution encoding and decoding in some format is the only option. I went with encoding and decoding in base64 to solve the issue. – gk. Sep 07 '18 at 05:21