Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想解析一个二进制文件并以十六进制格式而不是 unicode 指定字符,这可能吗?
例如: rule: '\x7F' ;
而不是: rule: '\u007F' ;
因为我不明白 unicode 如何映射到一个字节。
根据定义,二进制文件不包含字符或文本。所以你是对的,你不应该使用 Unicode 字符来指定格式。然而,潜在的问题是“你应该首先使用 Anltr 吗?”。SO已经给出了答案,这并不奇怪:不