标签
本文阐述了由于Unicode版本不匹配,Python的str.lower()函数可能在IDNA编码中引入安全漏洞,导致不符合RFC标准,并引起不一致的域名处理。
GitHub engineering describes how they optimized case-folding for their code search engine by removing early-exit branches, achieving memory-speed ASCII folding, and open-sourcing the result as a Rust crate called casefold.
Mojibake是一个为C11/C++17设计的自包含Unicode 17库,提供归一化、大小写转换和字符数据库功能,零依赖。