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

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.
184
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.
57
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.
55
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.
53
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
38
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
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.
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.
24
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
22
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.
21
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
21
iTextSharp.LGPLv2.Core
iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.
21
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore.
21
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
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.
20
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
20
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/e68227ea677b76a3c603bd616f03ea6d952b2458.
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
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.
20
Microsoft.CodeAnalysis.Workspaces.Common
A shared package used by the .NET Compiler Platform ("Roslyn") including support for analyzing projects and solutions. 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.
20

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