扩展 ASCII 字符对于文件名和文件名是否安全?文件夹?

发布于 2024-08-25 12:25:19 字数 92 浏览 2 评论 0原文

我的 C# 项目使用扩展 ASCII 字符“²”(上标 2)保存文件并创建文件夹。这在国际上工作安全吗?这是否可能导致 .NET 库或 Windows 函数出现任何问题?

My C# project saves files and creates folders with the extended ASCII character "²" (superscript 2). Is this safe to work with internationally? Is this something that could cause any issues with the .NET libraries or Windows functions?

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

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

发布评论

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

评论(1

谢绝鈎搭 2024-09-01 12:25:24

启动 Windows NT (?) 文件名始终是 unicode。所以应该没有问题。

当您开始使用替代空格字符、音译字符或应该具有双向上下文的字符时,事情确实会变得棘手,但上标 2 的情况并非如此

Starting windows NT (?) filenames are always unicode. so there shouldn't be a problem.

Things do get hairy when you start using alternative space characters, transliterated characters or characters which should have a bidirectional context but that is not the case with the superscript 2

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