FTP 用户名中的非拉丁字符

发布于 2024-09-14 12:15:21 字数 123 浏览 2 评论 0原文

我试图找到 FTP 用户名中允许的字符列表,但 RFC 不是很具体。哪些 ftp 服务器和客户端支持 Unicode 格式的用户名?特殊字符?是否有一个普遍接受的规范来解释 FTP 用户名中允许的字符列表? (谷歌搜索对我没有帮助)

I tried to find the list of characters allowed in username for FTP but the RFC is not very specific. What ftp servers and clients support user names in Unicode? Special characters? Is there a generally accepted spec that explains the list of characters allowed in FTP usernames? (googling was of no help to me)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事和酒 2024-09-21 12:15:21

RFC 959 5.3.2:

<username> ::= <string>
<string> ::= <char> | <char><string>
<char> ::= any of the 128 ASCII characters except <CR> and <LF>

后来的 RFC(如提议的标准RFC 3659) 谈论 UTF-8 扩展,但仅在路径名和文件内容编码的上下文中。

所以你只能依赖 ASCII,但我怀疑实际上大多数客户端和服务器都支持 UTF-8。

RFC 959 5.3.2:

<username> ::= <string>
<string> ::= <char> | <char><string>
<char> ::= any of the 128 ASCII characters except <CR> and <LF>

Later RFCs (like proposed standard RFC 3659) talk about UTF-8 extensions, but only in the context of pathnames and file contents encoding.

So you can only depend on ASCII, but I suspect in practice most clients and servers support UTF-8.

梦途 2024-09-21 12:15:21

尝试使用 UTF-8 进行编码,因为大多数 FTP 服务器都可以使用 UTF-8。

Try to encode using UTF-8 because most FTP servers will work with UTF-8.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文