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

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.
181
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.
52
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.
51
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.
49
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
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.
33
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
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.
20
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
18
iTextSharp.LGPLv2.Core
iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.
18
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
18
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.
17
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.
17
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore.
17
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.
17
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.
16
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/b9fb1610c87cccc8ceb74a770dba261a58e39c4a.
16
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 8321c729934c0f8be754953439b88e6e1c120c24 When using NuGet 3.x this package requires at least version 3.4.
16
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 e6120535bbabd5d198be00052a368f64c308d9c5 When using NuGet 3.x this package requires at least version 3.4.
16

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