What's Changed
- Fix
EncodingTransformation
forEncoding
andint
instances wrapped inPSObject
by @santisq in #37. Same issue as #34 but whenEncoding
andint
instances are wrapped inPSObject
:
$utf8 = [System.Text.Encoding]::UTF8 | Write-Output
Get-ZipEntry .\test.zip | Get-ZipEntryContent -Encoding $utf8
# Get-ZipEntryContent: Cannot process argument transformation on parameter 'Encoding'.
# Could not convert input 'System.Text.UTF8Encoding+UTF8EncodingSealed' to a valid Encoding object.
$utf8 = [System.Text.Encoding]::UTF8.CodePage | Write-Output
Get-ZipEntry .\test.zip | Get-ZipEntryContent -Encoding $utf8
# Get-ZipEntryContent: Cannot process argument transformation on parameter 'Encoding'.
# Could not convert input '65001' to a valid Encoding object.
Full Changelog: v2.0.9...v2.0.10