System.Text.Encoding.CodePages 11.0.0-preview.2.26159.112

About

System.Text.Encoding.CodePages enable creating single and double bytes encodings for code pages that otherwise are available only in the desktop .NET Framework.

Key Features

  • Support single and double byte encodings for code pages that are not available in .NET Core.

How to Use

using System.Text;

// Register the CodePages encoding provider at application startup to enable using single and double byte encodings.
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

// Now can create single and double byte encodings for code pages that are not available in .NET Core.
Encoding windows1252Encoding = Encoding.GetEncoding(1252); // Western European (Windows)
byte[] encodedBytes = windows1252Encoding.GetBytes("String to encode");

Main Types

The main types provided by this library are:

  • CodePagesEncodingProvider

Additional Documentation

Feedback & Contributing

System.Text.Encoding.CodePages is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Showing the top 20 packages that depend on System.Text.Encoding.CodePages.

Packages Downloads
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
10
Microsoft.CodeAnalysis.Scripting.Common
Microsoft .NET Compiler Platform ("Roslyn") shared scripting package. Do not install this package manually, it will be added as a prerequisite by other packages that require it. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/bde21ee2b98b775b010d01a93f81ef587fe80962.
9
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
9
Flurl.Http
A fluent, portable, testable HTTP client library.
9
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard.
9
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
8
EPPlus
A spreadsheet library for .NET framework and .NET core
8
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
7
Microsoft.CodeAnalysis.Common
A shared package used by the Microsoft .NET Compiler Platform ("Roslyn"). Do not install this package manually, it will be added as a prerequisite by other packages that require it. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/43b0b05cc4f492fd5de00f6f6717409091df8daa.
7
Microsoft.CodeAnalysis.Common
A shared package used by the Microsoft .NET Compiler Platform ("Roslyn"). Do not install this package manually, it will be added as a prerequisite by other packages that require it. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/50bd09a9eefdf9bc3653dbf6d9624b31a023c7c0.
7

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 10.0

  • No dependencies.

.NET 11.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
11.0.0-preview.2.26159.112 1 03/20/2026
11.0.0-preview.1.26104.118 4 02/18/2026
10.0.5 1 03/22/2026
10.0.4 1 03/24/2026
10.0.3 2 02/20/2026
10.0.2 5 01/19/2026
10.0.1 4 12/17/2025
10.0.0 3 12/09/2025
10.0.0-rc.2.25502.107 2 12/11/2025
10.0.0-rc.1.25451.107 2 12/11/2025
10.0.0-preview.7.25380.108 3 01/04/2026
10.0.0-preview.6.25358.103 1 12/10/2025
10.0.0-preview.5.25277.114 0 12/10/2025
10.0.0-preview.4.25258.110 1 01/04/2026
10.0.0-preview.3.25171.5 0 12/10/2025
10.0.0-preview.2.25163.2 3 01/07/2026
10.0.0-preview.1.25080.5 3 01/22/2026
9.0.14 2 03/23/2026
9.0.13 2 02/18/2026
9.0.12 3 01/20/2026
9.0.11 2 01/21/2026
9.0.10 3 12/10/2025
9.0.9 4 12/10/2025
9.0.8 4 12/10/2025
9.0.7 4 12/10/2025
9.0.6 4 12/10/2025
9.0.5 3 12/10/2025
9.0.4 3 12/10/2025
9.0.3 4 12/26/2025
9.0.2 3 12/26/2025
9.0.1 4 12/26/2025
9.0.0 4 12/26/2025
9.0.0-rc.2.24473.5 3 01/21/2026
9.0.0-rc.1.24431.7 2 01/20/2026
9.0.0-preview.7.24405.7 2 12/10/2025
9.0.0-preview.6.24327.7 3 01/16/2026
9.0.0-preview.5.24306.7 4 01/07/2026
9.0.0-preview.4.24266.19 1 01/01/2026
9.0.0-preview.3.24172.9 2 01/21/2026
9.0.0-preview.2.24128.5 2 01/20/2026
9.0.0-preview.1.24080.9 3 01/08/2026
8.0.0 4 12/26/2025
8.0.0-rc.2.23479.6 3 01/21/2026
8.0.0-rc.1.23419.4 4 12/11/2025
8.0.0-preview.7.23375.6 3 12/10/2025
8.0.0-preview.6.23329.7 3 12/10/2025
8.0.0-preview.5.23280.8 2 12/10/2025
8.0.0-preview.4.23259.5 5 12/10/2025
8.0.0-preview.3.23174.8 3 12/10/2025
8.0.0-preview.2.23128.3 3 12/10/2025
8.0.0-preview.1.23110.8 3 12/10/2025
7.0.0 6 12/10/2025
7.0.0-rc.2.22472.3 3 12/11/2025
7.0.0-rc.1.22426.10 3 12/11/2025
7.0.0-preview.7.22375.6 4 12/10/2025
7.0.0-preview.6.22324.4 2 12/10/2025
7.0.0-preview.5.22301.12 3 01/22/2026
7.0.0-preview.4.22229.4 4 12/10/2025
7.0.0-preview.3.22175.4 3 12/10/2025
7.0.0-preview.2.22152.2 3 12/10/2025
7.0.0-preview.1.22076.8 4 01/17/2026
6.0.1 6 12/10/2025
6.0.0 6 12/10/2025
6.0.0-rc.2.21480.5 4 12/11/2025
6.0.0-rc.1.21451.13 3 12/11/2025
6.0.0-preview.7.21377.19 4 12/10/2025
6.0.0-preview.6.21352.12 4 12/10/2025
6.0.0-preview.5.21301.5 4 12/10/2025
6.0.0-preview.4.21253.7 3 12/10/2025
6.0.0-preview.3.21201.4 4 12/10/2025
6.0.0-preview.2.21154.6 4 12/10/2025
6.0.0-preview.1.21102.12 4 12/10/2025
5.0.0 7 12/10/2025
5.0.0-rc.2.20475.5 3 12/11/2025
5.0.0-rc.1.20451.14 3 12/11/2025
5.0.0-preview.8.20407.11 4 01/20/2026
5.0.0-preview.7.20364.11 4 12/10/2025
5.0.0-preview.6.20305.6 4 12/10/2025
5.0.0-preview.5.20278.1 4 12/10/2025
5.0.0-preview.4.20251.6 3 12/10/2025
5.0.0-preview.3.20214.6 4 12/10/2025
5.0.0-preview.2.20160.6 4 01/20/2026
5.0.0-preview.1.20120.5 2 12/10/2025
4.7.1 7 12/10/2025
4.7.0 5 12/26/2025
4.7.0-preview3.19551.4 5 01/16/2026
4.7.0-preview2.19523.17 5 01/02/2026
4.7.0-preview1.19504.10 4 01/20/2026
4.6.0 5 12/26/2025
4.6.0-rc1.19456.4 3 01/21/2026
4.6.0-preview9.19421.4 4 01/06/2026
4.6.0-preview9.19416.11 3 01/19/2026
4.6.0-preview8.19405.3 4 01/05/2026
4.6.0-preview7.19362.9 4 01/21/2026
4.6.0-preview6.19303.8 3 01/20/2026
4.6.0-preview6.19264.9 3 01/22/2026
4.6.0-preview5.19224.8 4 01/19/2026
4.6.0-preview4.19212.13 3 01/19/2026
4.6.0-preview3.19128.7 4 01/03/2026
4.6.0-preview.19073.11 3 01/15/2026
4.6.0-preview.18571.3 4 01/08/2026
4.5.1 4 12/27/2025
4.5.1-servicing-27114-05 3 01/11/2026
4.5.0 5 12/26/2025
4.5.0-rc1 2 01/19/2026
4.5.0-preview2-26406-04 4 01/03/2026
4.5.0-preview1-26216-02 3 01/20/2026
4.5.0-preview1-25914-04 4 01/09/2026
4.4.0 4 12/26/2025
4.4.0-preview2-25405-01 4 01/20/2026
4.4.0-preview1-25305-02 4 01/10/2026
4.3.0 6 12/26/2025
4.3.0-preview1-24530-04 4 01/21/2026
4.0.1 7 12/26/2025
4.0.1-rc2-24027 3 01/21/2026
4.0.1-beta-23516 2 01/21/2026
4.0.1-beta-23409 4 01/06/2026
4.0.1-beta-23225 4 01/06/2026
4.0.0 6 12/26/2025
4.0.0-beta-23109 3 01/06/2026
4.0.0-beta-23019 4 01/05/2026
4.0.0-beta-22816 4 01/10/2026
4.0.0-beta-22605 3 01/05/2026
4.0.0-beta-22416 4 01/05/2026
4.0.0-beta-22231 5 01/03/2026