Add support to support PUA in BGI string

This commit is contained in:
2025-07-08 10:20:21 +08:00
parent e317c487fb
commit 601abba284
17 changed files with 104 additions and 60 deletions

View File

@@ -164,7 +164,7 @@ impl Dref {
filename: &str,
_config: &ExtraConfig,
) -> Result<Self> {
let text = decode_with_bom_detect(encoding, &buf)?.0;
let text = decode_with_bom_detect(encoding, &buf, true)?.0;
let mut urls = Vec::new();
for text in text.lines() {
let text = text.trim();