diff --git a/reference/6/Microsoft.PowerShell.Management/Add-Content.md b/reference/6/Microsoft.PowerShell.Management/Add-Content.md index 9f1d3f051530..aed315a9325b 100644 --- a/reference/6/Microsoft.PowerShell.Management/Add-Content.md +++ b/reference/6/Microsoft.PowerShell.Management/Add-Content.md @@ -221,6 +221,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Management/Get-Content.md b/reference/6/Microsoft.PowerShell.Management/Get-Content.md index 8b05a2feeb9d..62255a8744c4 100644 --- a/reference/6/Microsoft.PowerShell.Management/Get-Content.md +++ b/reference/6/Microsoft.PowerShell.Management/Get-Content.md @@ -514,6 +514,11 @@ operation. The default **ReadCount** value, 1, reads one byte in each read opera each byte into a separate object, which causes errors when you use the `Set-Content` cmdlet to write the bytes to a file unless you use **AsByteStream** parameter. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Management/Set-Content.md b/reference/6/Microsoft.PowerShell.Management/Set-Content.md index f7115c1568fb..eafc0c050f66 100644 --- a/reference/6/Microsoft.PowerShell.Management/Set-Content.md +++ b/reference/6/Microsoft.PowerShell.Management/Set-Content.md @@ -189,6 +189,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Utility/Export-Clixml.md b/reference/6/Microsoft.PowerShell.Utility/Export-Clixml.md index 6a3885a94a96..041a1a595afd 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Export-Clixml.md +++ b/reference/6/Microsoft.PowerShell.Utility/Export-Clixml.md @@ -142,6 +142,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Utility/Export-Csv.md b/reference/6/Microsoft.PowerShell.Utility/Export-Csv.md index 6aaadcb7275d..fe785e2a5811 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Export-Csv.md +++ b/reference/6/Microsoft.PowerShell.Utility/Export-Csv.md @@ -18,7 +18,7 @@ file. ### Delimiter (Default) -``` +``` Export-Csv [[-Path] ] [[-Delimiter] ] -InputObject [-LiteralPath ] [-Force] [-NoClobber] [-Encoding ] [-Append] [-IncludeTypeInformation] [-NoTypeInformation] [-WhatIf] [-Confirm] [] @@ -26,7 +26,7 @@ Export-Csv [[-Path] ] [[-Delimiter] ] -InputObject [-Li ### UseCulture -``` +``` Export-Csv [[-Path] ] -InputObject [-LiteralPath ] [-Force] [-NoClobber] [-Encoding ] [-Append] [-UseCulture] [-IncludeTypeInformation] [-NoTypeInformation] [-WhatIf] [-Confirm] [] @@ -310,7 +310,7 @@ $AdditionalContent | Export-Csv -Path .\ParmFile.csv -NoTypeInformation -Append ``` ```Output -Export-Csv : Cannot append CSV content to the following file: ParmFile.csv. +Export-Csv : Cannot append CSV content to the following file: ParmFile.csv. The appended object does not have a property that corresponds to the following column: Version. To continue with mismatched properties, add the -Force parameter, and then retry the command. @@ -407,6 +407,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) @@ -628,7 +633,7 @@ the methods of the object. The CSV strings are output as follows: - If **IncludeTypeInformation** is used, the first string contains the **#TYPE** information header - followed by the object type's fully qualified name. + followed by the object type's fully qualified name. For example, **#TYPE System.Diagnostics.Process**. - If **IncludeTypeInformation** is not used the first string includes the column headers. The headers contain the first object's property names as a comma-separated list. diff --git a/reference/6/Microsoft.PowerShell.Utility/Export-PSSession.md b/reference/6/Microsoft.PowerShell.Utility/Export-PSSession.md index 89f5775d3ece..4f2195e227e9 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Export-PSSession.md +++ b/reference/6/Microsoft.PowerShell.Utility/Export-PSSession.md @@ -296,6 +296,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Utility/Format-Hex.md b/reference/6/Microsoft.PowerShell.Utility/Format-Hex.md index 9308022f2ba3..a3e7985a52d0 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Format-Hex.md +++ b/reference/6/Microsoft.PowerShell.Utility/Format-Hex.md @@ -75,7 +75,7 @@ Format-Hex -Path .\File.t7f ```Output Path: C:\Test\File.t7f - + 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000000 25 50 44 46 2D 31 2E 35 0D 0A 25 B5 B5 B5 B5 0D %PDF-1.5..%????. @@ -109,6 +109,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: ByInputObject diff --git a/reference/6/Microsoft.PowerShell.Utility/Import-Csv.md b/reference/6/Microsoft.PowerShell.Utility/Import-Csv.md index 0d5994e81a6b..653bbeb3da94 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Import-Csv.md +++ b/reference/6/Microsoft.PowerShell.Utility/Import-Csv.md @@ -318,7 +318,7 @@ Accept wildcard characters: False ### -Encoding -Specifies the encoding for the exported CSV file. The default value is **UTF8NoBOM**. +Specifies the encoding for the imported CSV file. The default value is **UTF8NoBOM**. The acceptable values for this parameter are as follows: @@ -336,6 +336,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Utility/Out-File.md b/reference/6/Microsoft.PowerShell.Utility/Out-File.md index ef11cc8127d1..0f45c97feb00 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Out-File.md +++ b/reference/6/Microsoft.PowerShell.Utility/Out-File.md @@ -170,6 +170,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Utility/Select-String.md b/reference/6/Microsoft.PowerShell.Utility/Select-String.md index 6e98bc1a003d..4dc9c8bdfbb5 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Select-String.md +++ b/reference/6/Microsoft.PowerShell.Utility/Select-String.md @@ -395,6 +395,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All) diff --git a/reference/6/Microsoft.PowerShell.Utility/Send-MailMessage.md b/reference/6/Microsoft.PowerShell.Utility/Send-MailMessage.md index fff52d91321f..aa9d48b4f738 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Send-MailMessage.md +++ b/reference/6/Microsoft.PowerShell.Utility/Send-MailMessage.md @@ -255,6 +255,11 @@ The acceptable values for this parameter are as follows: - **UTF32**: Encodes in UTF-32 format. - **Unknown**: The encoding type is unknown or invalid; the data can be treated as binary. +Beginning with PowerShell 6.2, the **Encoding** parameter also allows numeric IDs of registered code +pages (like `-Encoding 1251`) or string names of registered code pages (like +`-Encoding "windows-1251"`). For more information, see the .NET documentation for +[Encoding.CodePage](/dotnet/api/system.text.encoding.codepage?view=netcore-2.2). + ```yaml Type: Encoding Parameter Sets: (All)