HTTP URI是否可以包含非ASCII字符? [英] Can HTTP URIs have non-ASCII characters?

查看:229
本文介绍了HTTP URI是否可以包含非ASCII字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在相关的RFC中找到这个, IETF RFC 3986 ,但是不能想一想。

I tried to find this in the relevant RFC, IETF RFC 3986, but couldn't figure it.

HTTP的URI是否允许Unicode或任何类型的非ASCII?

Do URIs for HTTP allow Unicode, or non-ASCII of any kind?

您能否引用支持您答案的部分和RFC。

Can you please cite the section and the RFC that supports your answer.

注意:对于那些可能认为这与编程不相关的人来说 - 确实如此。它与我正在构建的ISAPI过滤器有关。

附录

我已阅读RFC 3986的2.5节。但我认为RFC 2616是当前的HTTP协议,早于3986,因此我认为它不能此外,即使或当HTTP RFC更新时,仍然存在合理化的问题 - 换句话说, HTTP URI支持所有RFC3986条款,包括适合包含的内容非US-ASCII字符?

I've read section 2.5 of RFC 3986. But RFC 2616, which I believe is the current HTTP protocol, predates 3986, and for that reason I'd suppose it cannot be compliant with 3986. Furthermore, even if or when the HTTP RFC is updated, there still will be the issue of rationalization - in other words, does an HTTP URI support ALL of the RFC3986 provisos, including whatever is appropriate to include non US-ASCII characters?

推荐答案

不,不允许使用它们。只需检查RFC 3986中的ABNF。

No, they are not allowed. Just check the ABNF in RFC 3986.

这篇关于HTTP URI是否可以包含非ASCII字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆