System.Text.Encoding.CodePages 10.0.5

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
Dapper
A high performance Micro-ORM supporting Sql Server, MySQL, Sqlite, SqlCE, Firebird etc..
2
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.
2
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 7ee84596d92e178bce54c986df31ccc52479e772 When using NuGet 3.x this package requires at least version 3.4.
2
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 9b5053f09fac4a2d615619197924072b9571da78 When using NuGet 3.x this package requires at least version 3.4.
2
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 30ab651fcb4354552bd4891619a0bdd81e0ebdbf When using NuGet 3.x this package requires at least version 3.4.
2
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 0d659f4ac19119ade7252828ef45764ca3b6f1c3 When using NuGet 3.x this package requires at least version 3.4.
2
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 7a9e727fa3961bb55a02e471bb0bc9f9e82df4d9 When using NuGet 3.x this package requires at least version 3.4.
2
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 215f374988eba0829f6880026909851ed04a8638 When using NuGet 3.x this package requires at least version 3.4.
2
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.
2

.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
11.0.0-preview.2.26159.112 2 03/12/2026
11.0.0-preview.1.26104.118 2 02/14/2026
10.0.5 1 03/17/2026
10.0.4 1 03/12/2026
10.0.3 2 02/14/2026
10.0.2 2 02/14/2026
10.0.1 2 02/14/2026
10.0.0 2 02/14/2026
10.0.0-rc.2.25502.107 2 02/14/2026
10.0.0-rc.1.25451.107 2 02/14/2026
10.0.0-preview.7.25380.108 2 02/14/2026
10.0.0-preview.6.25358.103 2 02/14/2026
10.0.0-preview.5.25277.114 2 02/14/2026
10.0.0-preview.4.25258.110 2 02/14/2026
10.0.0-preview.3.25171.5 2 02/14/2026
10.0.0-preview.2.25163.2 2 02/14/2026
10.0.0-preview.1.25080.5 2 02/14/2026
9.0.14 1 03/12/2026
9.0.13 2 02/14/2026
9.0.12 2 02/14/2026
9.0.11 2 02/14/2026
9.0.10 2 02/14/2026
9.0.9 2 02/14/2026
9.0.8 2 02/14/2026
9.0.7 2 02/14/2026
9.0.6 2 02/14/2026
9.0.5 2 02/14/2026
9.0.4 2 02/14/2026
9.0.3 2 02/14/2026
9.0.2 2 02/14/2026
9.0.1 2 02/14/2026
9.0.0 2 02/14/2026
9.0.0-rc.2.24473.5 2 02/14/2026
9.0.0-rc.1.24431.7 2 02/14/2026
9.0.0-preview.7.24405.7 2 02/14/2026
9.0.0-preview.6.24327.7 2 02/14/2026
9.0.0-preview.5.24306.7 2 02/14/2026
9.0.0-preview.4.24266.19 2 02/14/2026
9.0.0-preview.3.24172.9 2 02/14/2026
9.0.0-preview.2.24128.5 2 02/14/2026
9.0.0-preview.1.24080.9 2 02/14/2026
8.0.0 2 02/14/2026
8.0.0-rc.2.23479.6 2 02/14/2026
8.0.0-rc.1.23419.4 2 02/14/2026
8.0.0-preview.7.23375.6 2 02/14/2026
8.0.0-preview.6.23329.7 2 02/14/2026
8.0.0-preview.5.23280.8 2 02/14/2026
8.0.0-preview.4.23259.5 2 02/14/2026
8.0.0-preview.3.23174.8 2 02/14/2026
8.0.0-preview.2.23128.3 2 02/14/2026
8.0.0-preview.1.23110.8 2 02/14/2026
7.0.0 2 02/14/2026
7.0.0-rc.2.22472.3 2 02/14/2026
7.0.0-rc.1.22426.10 2 02/14/2026
7.0.0-preview.7.22375.6 2 02/14/2026
7.0.0-preview.6.22324.4 2 02/14/2026
7.0.0-preview.5.22301.12 2 02/14/2026
7.0.0-preview.4.22229.4 2 02/14/2026
7.0.0-preview.3.22175.4 2 02/14/2026
7.0.0-preview.2.22152.2 2 02/14/2026
7.0.0-preview.1.22076.8 2 02/14/2026
6.0.1 2 02/14/2026
6.0.0 2 02/14/2026
6.0.0-rc.2.21480.5 2 02/14/2026
6.0.0-rc.1.21451.13 2 02/14/2026
6.0.0-preview.7.21377.19 2 02/14/2026
6.0.0-preview.6.21352.12 2 02/14/2026
6.0.0-preview.5.21301.5 2 02/14/2026
6.0.0-preview.4.21253.7 2 02/14/2026
6.0.0-preview.3.21201.4 2 02/14/2026
6.0.0-preview.2.21154.6 2 02/14/2026
6.0.0-preview.1.21102.12 2 02/14/2026
5.0.0 2 02/14/2026
5.0.0-rc.2.20475.5 2 02/14/2026
5.0.0-rc.1.20451.14 2 02/14/2026
5.0.0-preview.8.20407.11 2 02/14/2026
5.0.0-preview.7.20364.11 2 02/14/2026
5.0.0-preview.6.20305.6 2 02/14/2026
5.0.0-preview.5.20278.1 2 02/14/2026
5.0.0-preview.4.20251.6 2 02/14/2026
5.0.0-preview.3.20214.6 2 02/14/2026
5.0.0-preview.2.20160.6 2 02/14/2026
5.0.0-preview.1.20120.5 2 02/14/2026
4.7.1 2 02/14/2026
4.7.0 3 02/14/2026
4.7.0-preview3.19551.4 2 02/14/2026
4.7.0-preview2.19523.17 2 02/14/2026
4.7.0-preview1.19504.10 2 02/14/2026
4.6.0 2 02/14/2026
4.6.0-rc1.19456.4 2 02/14/2026
4.6.0-preview9.19421.4 2 02/14/2026
4.6.0-preview9.19416.11 2 02/14/2026
4.6.0-preview8.19405.3 2 02/14/2026
4.6.0-preview7.19362.9 2 02/14/2026
4.6.0-preview6.19303.8 2 02/14/2026
4.6.0-preview6.19264.9 2 02/14/2026
4.6.0-preview5.19224.8 2 02/14/2026
4.6.0-preview4.19212.13 2 02/14/2026
4.6.0-preview3.19128.7 2 02/14/2026
4.6.0-preview.19073.11 2 02/14/2026
4.6.0-preview.18571.3 2 02/14/2026
4.5.1 2 02/14/2026
4.5.1-servicing-27114-05 2 02/14/2026
4.5.0 2 02/14/2026
4.5.0-rc1 2 02/14/2026
4.5.0-preview2-26406-04 2 02/14/2026
4.5.0-preview1-26216-02 2 02/14/2026
4.5.0-preview1-25914-04 2 02/14/2026
4.4.0 2 02/14/2026
4.4.0-preview2-25405-01 2 02/14/2026
4.4.0-preview1-25305-02 2 02/14/2026
4.3.0 2 02/14/2026
4.3.0-preview1-24530-04 2 02/14/2026
4.0.1 2 02/14/2026
4.0.1-rc2-24027 2 02/14/2026
4.0.1-beta-23516 2 02/14/2026
4.0.1-beta-23409 2 02/14/2026
4.0.1-beta-23225 2 02/14/2026
4.0.0 2 02/14/2026
4.0.0-beta-23109 2 02/14/2026
4.0.0-beta-23019 2 02/14/2026
4.0.0-beta-22816 2 02/14/2026
4.0.0-beta-22605 2 02/14/2026
4.0.0-beta-22416 2 02/14/2026
4.0.0-beta-22231 2 02/14/2026