简体   繁体   English

如何在请求标题中设置日文字符

[英]How to set Japanes character in request Header

I am trying to set a custom header, everything works fine untill I set the header value with a Japanese string. 我试图设置一个自定义标头,一切正常,直到我用日语字符串设置标头值。 在此处输入图片说明

Can anyone help me how to allow the Japanese value in header 谁能帮我如何允许标头中的日语值

System: Laravel + PHP 7 + Apache server 系统:Laravel + PHP 7 + Apache服务器

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. 但是简短的答案是,由于HTTP标头主要是在考虑ASCII的情况下设计的,因此它可能无法正常工作。 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? 我可以在HTTP标头中使用Unicode字符吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM