Skip to content

Commit 80b4f92

Browse files
authored
Merge pull request #274 from richardstanton/expandps5fix
Ensure Expand-Template uses UTF-8 when replacing placeholders.
2 parents 1ca1013 + 51875f6 commit 80b4f92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Expand-Template.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Replace-Placeholders {
3636

3737
$Path = Resolve-Path $Path
3838
Write-Host "Replacing tokens in `"$Path`""
39-
$content = Get-Content -Path $Path | Out-String
39+
$content = Get-Content -Encoding UTF8 -Path $Path | Out-String
4040
$Replacements.GetEnumerator() |% {
4141
$modifiedContent = $content -replace $_.Key,$_.Value
4242
if ($modifiedContent -eq $content) {

0 commit comments

Comments
 (0)