• 请不要在回答技术问题时复制粘贴 AI 生成的内容
mfsw
V2EX  ›  程序员

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

  •  
  •   mfsw · Nov 1, 2024 · 1530 views
    This topic created in 621 days ago, the information mentioned may be changed or developed.

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

    mfsw
        1
    mfsw  
    OP
       Nov 1, 2024
    https://raw.githubusercontent.com/owasp-modsecurity/ModSecurity/refs/heads/v3/master/unicode.mapping

    我是使用在 ModSecurity 的设置文件中。链接里面只有 gbk 936 ,我应该用 65001 ,但是里面没有。是我打开的方法不对吗?
    SecUnicodeMapFile unicode.mapping 936
    adoal
        2
    adoal  
       Nov 1, 2024
    不懂 ModSecurity ,但个人理解,这个 mapping 是从非 Unicode 的编码到 Unicode 的(这个只能查表,没有算法),而 UTF-8 、UTF-7 本来就是 Unicode 的编码,不需要查表。
    mfsw
        3
    mfsw  
    OP
       Nov 2, 2024
    @adoal 感谢指教,我注销掉这条命令了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5479 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:21 · PVG 15:21 · LAX 00:21 · JFK 03:21
    ♥ Do have faith in what you're doing.