README.md — Documentation complète du projet
Refonte action Write : modifier les XML existants au lieu de les regenerer
This commit is contained in:
@@ -20,7 +20,8 @@ function New-EnoceanZip {
|
||||
$entry = $archive.CreateEntry($entryPath, [System.IO.Compression.CompressionLevel]::Optimal)
|
||||
|
||||
$entryStream = $entry.Open()
|
||||
$writer = New-Object System.IO.StreamWriter($entryStream, [System.Text.Encoding]::UTF8)
|
||||
$utf8NoBom = New-Object System.Text.UTF8Encoding($false)
|
||||
$writer = New-Object System.IO.StreamWriter($entryStream, $utf8NoBom)
|
||||
$writer.Write($xmlFile.Content)
|
||||
$writer.Flush()
|
||||
$writer.Close()
|
||||
|
||||
Reference in New Issue
Block a user