-
Notifications
You must be signed in to change notification settings - Fork 1.7k
List of accepted encodings not accurate for Get-Content #4191
Copy link
Copy link
Closed
Labels
area-managementArea - Microsoft.PowerShell.Management moduleArea - Microsoft.PowerShell.Management module
Description
The list of acceptable values to pass to the -Encoding parameter is not correct. The list as as follows:
ascii, bigendianunicode, oem, unicode, utf7, utf8, utf8BOM, utf8NoBOM, utf32
As of the version:
Name Value
---- -----
PSVersion 6.2.0
PSEdition Core
GitCommitId 6.2.0
OS Linux 4.17.0-9-generic #10-Ubuntu SMP Wed Aug 22 13:33:37 UTC 2018
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I have confirmed that this list as also the same for the following version:
Name Value
---- -----
PSVersion 6.1.1
PSEdition Core
GitCommitId 6.1.1
OS Microsoft Windows 10.0.14393
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: a36b1bbf-1de9-eb01-4fed-eca5444c15cd
- Version Independent ID: 6ccfc309-9783-aadd-717d-671dcbd454ed
- Content: Get-Content (Microsoft.PowerShell.Management)
- Content Source: reference/6/Microsoft.PowerShell.Management/Get-Content.md
- Product: powershell
- Technology: powershell-cmdlets
- GitHub Login: @daxian-dbw
- Microsoft Alias: dongbow
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-managementArea - Microsoft.PowerShell.Management moduleArea - Microsoft.PowerShell.Management module