System.Text.Encoding.CodePages 10.0.0

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
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
120
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
121
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
294
FastReport.Core
FastReport.Core is a full-featured reporting solution for .Net Core and .Net Framework 4.x. Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 25 types of barcodes, table object, diagram, maps, shapes, line, PolyLine, Polygon and many more. FastReport.Core supports export to various popular formats, such as PDF/A, Excel, Word, Open Office, HTML, CSV, Json, XAML, ZPL, etc.
3,939
FastReport.Core.Skia
FastReport.Core.Skia is a full-featured reporting solution for .Net Core and .Net Framework. Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 25 types of barcodes, table object, diagram, maps, shapes, line, PolyLine, Polygon and many more. FastReport.Core supports export to various popular formats, such as PDF/A, Excel, Word, Open Office, HTML, CSV, Json, XAML, ZPL, etc.
128
FastReport.Core.Skia
FastReport.Core.Skia is a full-featured reporting solution for .Net Core and .Net Framework. Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 25 types of barcodes, table object, diagram, maps, shapes, line, PolyLine, Polygon and many more. FastReport.Core supports export to various popular formats, such as PDF/A, Excel, Word, Open Office, HTML, CSV, Json, XAML, ZPL, etc.
171
FastReport.Core.Skia
FastReport.Core.Skia is a full-featured reporting solution for .Net Core and .Net Framework. Various report objects will allow your report to look exactly how you want it to: 13 types of bands, 25 types of barcodes, table object, diagram, maps, shapes, line, PolyLine, Polygon and many more. FastReport.Core supports export to various popular formats, such as PDF/A, Excel, Word, Open Office, HTML, CSV, Json, XAML, ZPL, etc.
456
Flurl.Http
A fluent, portable, testable HTTP client library.
13,755
Flurl.Http
A fluent, testable HTTP client library.
145
itext
iText represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high- and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow. iText allows you to build custom PDF scenarios for web, mobile, desktop or cloud apps in .NET.
231
itext
iText represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high- and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow. iText allows you to build custom PDF scenarios for web, mobile, desktop or cloud apps in .NET.
700
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/4bdc8414790101a4da120a92cc4bc0154ac787ca.
163
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.
288
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.
731
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,649
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.
6,013
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.
436
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.
443
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.
714
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.
13,612

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