Skip to content

Commit

Permalink
Force encoding (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbergstrom authored Dec 27, 2021
1 parent 9bc7c80 commit ef676ee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

## 0.0.4 - 2021-12-26 - Force native command encoding
### Added
* Automatically force PowerShell to interpet native console output with UTF8 encoding

## 0.0.3 - 2021-12-04 - Installed Package Wildcard Search Support
### Added
* Installed packages can now be searched with wildcards, aligning with standard PowerShell behavior
Expand Down
2 changes: 1 addition & 1 deletion src/WinGet.psd1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@{
RootModule = 'WinGet.psm1'
ModuleVersion = '0.0.3'
ModuleVersion = '0.0.4'
GUID = '468ef37a-2557-4c10-92ec-783ec1e41639'
Author = 'Ethan Bergstrom'
Copyright = ''
Expand Down
2 changes: 2 additions & 0 deletions src/WinGet.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ Get-ChildItem $ScriptPath/public -Recurse -Filter '*.ps1' -File | ForEach-Object
}
}

# Forces PowerShell to interpret output from native commands using UTF8
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

0 comments on commit ef676ee

Please sign in to comment.