MaxLaumeister / PageCrypt

Client-side password-protection for HTML
https://pagecrypt.maxlaumeister.com/
MIT License
513 stars 102 forks source link

Mangled unicode characters produced by PowerShell script #28

Closed MaxLaumeister closed 2 years ago

MaxLaumeister commented 2 years ago

PageCrypt has a PowerShell interface that was originally generously contributed by @nialfrancis.

When running a test on the current version of PageCrypt today, I noticed that that unicode characters do not seem to be decrypted properly, presumably due to an encoding issue.

Desired result, as produced by the frontend gui and the python script:

desired

Actual result, as produced by the PowerShell script. Note the mangled ⚡ symbol in the decrypted page.

actual

nialfrancis commented 2 years ago

Ahhh I tried to tag the issue in a new PR and failed :(

Quick fix, just force it to read the file as UTF8. I think newer PS versions will by default.

MaxLaumeister commented 2 years ago

Thank you for the fix!