System.Text.Encoding.CodePages 10.0.0-rc.1.25451.107

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.
190
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
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.
59
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.
56
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
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.
39
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.
34
EPPlus
A spreadsheet library for .NET framework and .NET core
28
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.
27
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
27
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.
26
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.
26
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
25
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 as well as .NET Standard.
25
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 cdaab0a8f64aaf6289582c4aa8cbeca18df991c1 When using NuGet 3.x this package requires at least version 3.4.
25
GleamTech.Common
This package contains the common assembly which is shared by various GleamTech products. Product packages such as GleamTech.FileUltimate, GleamTech.DocumentUltimate, GleamTech.ImageUltimate and GleamTech.VideoUltimate depend on this package.
25
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.
25
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.
25
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 029cf57733b7ec6c1dd8a13857e800b9a8d97192 When using NuGet 3.x this package requires at least version 3.4.
25
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.
25

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