修复link_lite.json bug

This commit is contained in:
Vaica committed 2026-01-21 13:13:54 +08:00
1 parent 8dec5359bd
commit 68e3cf372f
7 files changed
+251 -241

No files matched your search

+3 -2
View File
@@ -84,8 +84,9 @@ foreach ($file in $files) {
continue
}
# Save file using .NET method to ensure UTF8
[System.IO.File]::WriteAllText($file.FullName, $newContent, [System.Text.Encoding]::UTF8)
# Save file using .NET method to ensure UTF8 without BOM
$utf8NoBom = New-Object System.Text.UTF8Encoding $false
[System.IO.File]::WriteAllText($file.FullName, $newContent, $utf8NoBom)
Write-Host " -> Saved changes to $($file.Name)" -ForegroundColor Green
$count++
}