Skip to content

Commit

Permalink
Merge pull request #62 from theohbrothers/fix/add-missing-set-strictm…
Browse files Browse the repository at this point in the history
…ode-in-entrypoint

Fix: Add missing Set-StrictMode in entrypoint
  • Loading branch information
leojonathanoh committed Aug 9, 2021
2 parents f9c602c + a25ecfd commit 619629d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ConvertOneNote2MarkDown-v2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,8 @@ Function Convert-OneNote2MarkDown {
)

try {
Set-StrictMode -Version Latest

# Fix encoding problems for languages other than English
$PSDefaultParameterValues['*:Encoding'] = 'utf8'

Expand Down

0 comments on commit 619629d

Please sign in to comment.