[Windows] Change file encoding to utf8 with no BOM (#11853)

* feat:Change utf8 with no bom

* chore: replace WriteAllLines with WriteAllText
This commit is contained in:
Subir Ghosh
2025-03-24 08:12:09 -06:00
committed by GitHub
parent fced4a529c
commit fe5a6ae53b

View File

@@ -44,4 +44,5 @@ $json = @"
] ]
"@ "@
$json | Out-File -FilePath $imageDataFile $Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
[System.IO.File]::WriteAllText($imageDataFile, $json, $Utf8NoBomEncoding)