System.Text.Encoding.CodePages 10.0.0-preview.4.25258.110

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
EPPlus
A spreadsheet library for .NET framework and .NET core
90
EPPlus
A spreadsheet library for .NET framework and .NET core
68
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
66
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/46c8f4f56765e16b92759de8098494b36cfb84f5.
64
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.
64
EPPlus
A spreadsheet library for .NET framework and .NET core
56
EPPlus
A spreadsheet library for .NET framework and .NET core
54
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.
51
EPPlus
A spreadsheet library for .NET framework and .NET core
50
EPPlus
A spreadsheet library for .NET framework and .NET core
48
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.
46
EPPlus
A spreadsheet library for .NET framework and .NET core
43
EPPlus
A spreadsheet library for .NET framework and .NET core
42
EPPlus
A spreadsheet library for .NET framework and .NET core
40

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-preview.4.25258.110 27 07/12/2025
8.0.0 55 07/07/2025
6.0.0 90 07/07/2025
4.7.0 100 07/07/2025
4.7.0-preview2.19523.17 29 07/11/2025
4.4.0 138 07/07/2025
4.3.0 32 08/02/2025