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

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.
183
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.
56
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.
54
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.
51
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
37
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.
35
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.
31
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.
23
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore.
21
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
20
iTextSharp.LGPLv2.Core
iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.
20
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
20
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.
19
System.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: System.Data.SqlClient.SqlConnection System.Data.SqlClient.SqlException System.Data.SqlClient.SqlParameter System.Data.SqlDbType System.Data.SqlClient.SqlDataReader System.Data.SqlClient.SqlCommand System.Data.SqlClient.SqlTransaction System.Data.SqlClient.SqlParameterCollection System.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
19
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/4b5650e58ee947f283ec098c133c9ffd86b18744.
19
System.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: System.Data.SqlClient.SqlConnection System.Data.SqlClient.SqlException System.Data.SqlClient.SqlParameter System.Data.SqlDbType System.Data.SqlClient.SqlDataReader System.Data.SqlClient.SqlCommand System.Data.SqlClient.SqlTransaction System.Data.SqlClient.SqlParameterCollection System.Data.SqlClient.SqlClientFactory af7d2ae49c79bb279625de4e92f7f91f9fe94f5d When using NuGet 3.x this package requires at least version 3.4.
19
Microsoft.CodeAnalysis.CSharp
.NET Compiler Platform ("Roslyn") support for C#, Microsoft.CodeAnalysis.CSharp.dll. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/bde21ee2b98b775b010d01a93f81ef587fe80962.
19
iTextSharp.LGPLv2.Core
iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.
19
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.
18

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