Skip to content

Commit 5f9a344

Browse files
richardstantonAArnott
authored andcommitted
Ensure Expand-Template uses UTF-8 when replacing placeholders.
1 parent 656c5ff commit 5f9a344

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
@@ -40,7 +40,7 @@ function Replace-Placeholders {
4040

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

0 commit comments

Comments
 (0)