修复link_lite.json bug
This commit is contained in:
1 parent
8dec5359bd
commit
68e3cf372f
7 files changed
+251
-241
No files matched your search
@@ -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++
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user