Skip to content

Commit

Permalink
refactor(core): Use ASCII encoding because of PowerShell 5
Browse files Browse the repository at this point in the history
Encode file in "ASCII", since "UTF8" in Powershell 5 will be "UTF8-with-BOM", while "ASCII" be "UTF8".

Co-Authored-By: r15ch13 <r15ch13+git@gmail.com>
  • Loading branch information
niheaven and r15ch13 committed May 10, 2019
1 parent 2749104 commit f1c4a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function set_config($name, $val) {
$scoopConfig.PSObject.Properties.Remove($name)
}

ConvertTo-Json $scoopConfig | Set-Content $configFile -Encoding utf8
ConvertTo-Json $scoopConfig | Set-Content $configFile -Encoding ASCII
}

function setup_proxy() {
Expand Down

0 comments on commit f1c4a6c

Please sign in to comment.