Skip to content

Commit ed478a7

Browse files
committed
fixed encoding for mail templates
1 parent 5b3d566 commit ed478a7

4 files changed

+3
-2
lines changed

doc/MailTemplate.Announce.txt

-425 Bytes
Binary file not shown.

doc/MailTemplate.Result.txt

-430 Bytes
Binary file not shown.

doc/MailTemplate.txt

-886 Bytes
Binary file not shown.

scripts/update-version.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ function Update-TextVersion([System.IO.FileInfo]$TextFile, [string]$OldVersion,
3232
$OldContent = Get-Content $TextFile | Out-String
3333
$NewContent = $OldContent.Replace($OldVersion, $NewVersion)
3434
"$($TextFile): $NewVersion"
35-
$NewContent | Out-File $TextFile
35+
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
36+
[System.IO.File]::WriteAllText($TextFile, $NewContent, $Utf8NoBomEncoding)
3637
}
3738

3839
function Update-ReleaseNotes([System.IO.FileInfo]$XmlFile, [string]$Content, [string]$Version)
@@ -75,4 +76,4 @@ $ReleaseNoteSection = '
7576
</section>
7677
</section>'
7778

78-
Update-ReleaseNotes $PSScriptRoot/../src/site/xdoc/release/release-notes.xml $ReleaseNoteSection $NewVersion
79+
#Update-ReleaseNotes $PSScriptRoot/../src/site/xdoc/release/release-notes.xml $ReleaseNoteSection $NewVersion

0 commit comments

Comments
 (0)