System.Text.Encoding.CodePages 10.0.0

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
SharpCompress
SharpCompress is a compression library for NET Standard 1.0 that can unrar, decompress 7zip, decompress xz, zip/unzip, tar/untar lzip/unlzip, bzip2/unbzip2 and gzip/ungzip with forward-only reading and file random access APIs. Write support for zip/tar/bzip2/gzip is implemented.
193
SharpCompress
SharpCompress is a compression library for NET Standard 2.0/2.1/NET 5.0 that can unrar, decompress 7zip, decompress xz, zip/unzip, tar/untar lzip/unlzip, bzip2/unbzip2 and gzip/ungzip with forward-only reading and file random access APIs. Write support for zip/tar/bzip2/gzip is implemented.
65
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/34202cc2f3e869fd70a26d8237f4552cf9e192cf.
61
OpenGraph-Net
A simple .net assembly to use to parse Open Graph information from either a URL or an HTML snippet. You can read more about the Open Graph protocol @ http://ogp.me.
59
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/e595ee276d14e14bfb3eb323fb57f2aa668bddea
42
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
40
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
36
EPPlus
A spreadsheet library for .NET framework and .NET core
32
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
29
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
29
EPPlus
A spreadsheet library for .NET framework and .NET core
29
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. When using NuGet 3.x this package requires at least version 3.4.
29
SharpCompress
SharpCompress is a compression library for NET Standard 2.0/2.1//NET 4.6 that can unrar, decompress 7zip, decompress xz, zip/unzip, tar/untar lzip/unlzip, bzip2/unbzip2 and gzip/ungzip with forward-only reading and file random access APIs. Write support for zip/tar/bzip2/gzip is implemented.
29
EPPlus
A spreadsheet library for .NET framework and .NET core
28
Microsoft.CodeAnalysis.VisualBasic
.NET Compiler Platform ("Roslyn") support for Visual Basic, Microsoft.CodeAnalysis.VisualBasic.dll. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/2b7d172669b2f7e55803b55f317cfcc2d4279d76.
28
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
27

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

.NET Framework 4.6.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET 10.0

  • No dependencies.

.NET Standard 2.0

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