Skip to content

Commit

Permalink
Merge pull request #29 from nialfrancis/master
Browse files Browse the repository at this point in the history
Read file as UTF8 #28
  • Loading branch information
MaxLaumeister authored Feb 12, 2022
2 parents 17619bb + 5aea1b9 commit 9a40b51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PowerShell/Encrypt-StaticHTML.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if ($Template -eq '') { $Template = Join-Path $PSScriptRoot 'decryptTemplate-leg
if ($Password.Length -lt 8) { Write-Warning 'Password is very poor quality' }

if ($File) {
$data = Get-Content -Raw $File
$data = Get-Content -Raw -Encoding UTF8 $File
if (!$OutFile) { $OutFile = $File + '.enc.html' }
} elseif ($Text) {
$data = $Text
Expand Down

0 comments on commit 9a40b51

Please sign in to comment.