To get arround this, you can use [System.IO.File]::WriteAllLines with the proper encoding, e.g.
$UTF8NoBomEncoding = New-Object System.Text.UTF8Encoding(
$False,
$True)
[System.IO.File]::WriteAllLines(
$outputFilePath,
$array,
$UTF8NoBomEncoding)
Keine Kommentare:
Kommentar veröffentlichen