如何获取带有 UTF-8 编码(代码页 65001)的 unicode.mapping - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
mfsw
V2EX    程序员

如何获取带有 UTF-8 编码(代码页 65001)的 unicode.mapping

  •  
  •   mfsw 2024-11-01 10:17:08 +08:00 1156 次点击
    这是一个创建于 412 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,从 ModSecurity github 上下载的 unicode.mapping ,都是不带 utf-8 的。 本该是显示 65001 的位置,只有一个括号(UTF-8)。 怎么破?求诸位大佬带路指教。

    mfsw
        1
    mfsw  
    OP
       2024-11-01 10:20:26 +08:00
    https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/unicode.mapping

    我是使用在 ModSecurity 的设置文件中。链接里面只有 gbk 936 ,我应该用 65001 ,但是里面没有。是我打开的方法不对吗?
    SecUnicodeMapFile unicode.mapping 936
    adoal
        2
    adoal  
       2024-11-01 11:00:14 +08:00
    不懂 ModSecurity ,但个人理解,这个 mapping 是从非 Unicode 的编码到 Unicode 的(这个只能查表,没有算法),而 UTF-8 、UTF-7 本来就是 Unicode 的编码,不需要查表。
    mfsw
        3
    mfsw  
    OP
       2024-11-02 17:43:48 +08:00
    @adoal 感谢指教,我注销掉这条命令了。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5157 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 25ms UTC 07:12 PVG 15:12 LAX 23:12 JFK 02:12
    Do have faith in what you're doing.