System.Text.Encoding.CodePages 10.0.9

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
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.
1,612
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/6a5a63bbc9f4449d9bd1e95a8f9624939c3ccdc3.
1,244
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/260d16a8ee0ab42d94d8dfdfe85a1279c85dcffd.
1,082
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/e091728607ca0fc9efca55ccfb3e59259c6b5a0a.
638
Microsoft.CodeAnalysis.CSharp
.NET Compiler Platform ("Roslyn") support for C#, Microsoft.CodeAnalysis.CSharp.dll. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/6c4a46a31302167b425d5e0a31ea83c9a9aa1d09.
424
Microsoft.CodeAnalysis.Workspaces.MSBuild
.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/6c4a46a31302167b425d5e0a31ea83c9a9aa1d09.
419
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/6c4a46a31302167b425d5e0a31ea83c9a9aa1d09.
417
Microsoft.CodeAnalysis.CSharp.Workspaces
.NET Compiler Platform ("Roslyn") support for analyzing C# projects and solutions. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/6c4a46a31302167b425d5e0a31ea83c9a9aa1d09.
412
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/6c4a46a31302167b425d5e0a31ea83c9a9aa1d09.
410
Microsoft.CodeAnalysis.CSharp
.NET Compiler Platform ("Roslyn") support for C#, Microsoft.CodeAnalysis.CSharp.dll. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/8edf7bcd4f1594c3d68a6a567469f41dbd33dd1b.
407
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/8edf7bcd4f1594c3d68a6a567469f41dbd33dd1b.
406
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
144
Stimulsoft.Reports.Web.NetCore
Stimulsoft Reports.WEB for .NET Core is a reporting tool designed to create and render reports in Web using native .NET Core report engine. Stimulsoft Reports.WEB will provide the complete cycle of report designing, from creating report templates and ending with showing them in a web browser. All this can be done without closing a web browser. Stimulsoft Reports.WEB is the reporting tool that allows you to edit reports directly in Web.
80
Aspose.Words
Aspose.Words for .NET is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation. Users can perform a wide variety of document tasks, ranging from simply converting documents from one supported format to another and modifying these documents during the conversion process, to business-oriented tasks, such as creating structured and visually appealing documents or automating reporting with complex templates and data-bound fields.
75
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
74
Stimulsoft.Reports.Web.NetCore
Stimulsoft Reports.WEB for .NET Core is a reporting tool designed to create and render reports in Web using native .NET Core report engine. Stimulsoft Reports.WEB will provide the complete cycle of report designing, from creating report templates and ending with showing them in a web browser. All this can be done without closing a web browser. Stimulsoft Reports.WEB is the reporting tool that allows you to edit reports directly in Web.
73
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/5e3a11e2e7f952da93f9d35bd63a2fa181c0608b.
72
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
70
Stimulsoft.Reports.Web.NetCore
Stimulsoft Reports.Web for .NET Core is a reporting tool designed to create and render reports in Web using native .NET Core report engine. Stimulsoft Reports.Web will provide the complete cycle of report designing, from creating report templates and ending with showing them in a web browser. All this can be done without closing a web browser. Stimulsoft Reports.Web is the reporting tool that allows you to edit reports directly in Web.
69
Aspose.Cells
Aspose.Cells for .NET consists of API and GUI controls to create, process, manipulate and convert Microsoft Excel® spreadsheets without needing Office Automation.
69

.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.5.26302.115 5 06/11/2026
11.0.0-preview.4.26230.115 17 05/14/2026
11.0.0-preview.3.26207.106 26 04/16/2026
11.0.0-preview.2.26159.112 25 03/11/2026
11.0.0-preview.1.26104.118 28 02/12/2026
10.0.9 5 06/11/2026
10.0.8 13 05/14/2026
10.0.7 144 04/23/2026
10.0.6 23 04/16/2026
10.0.5 25 03/17/2026
10.0.4 25 03/12/2026
10.0.3 35 02/10/2026
10.0.2 48 01/14/2026
10.0.1 43 12/10/2025
10.0.0 38 12/13/2025
10.0.0-rc.2.25502.107 33 12/13/2025
10.0.0-rc.1.25451.107 34 12/13/2025
10.0.0-preview.7.25380.108 37 12/20/2025
10.0.0-preview.6.25358.103 41 01/01/2026
10.0.0-preview.5.25277.114 34 12/16/2025
10.0.0-preview.4.25258.110 38 12/14/2025
10.0.0-preview.3.25171.5 36 12/16/2025
10.0.0-preview.2.25163.2 39 12/16/2025
10.0.0-preview.1.25080.5 34 12/16/2025
9.0.17 3 06/11/2026
9.0.16 11 05/14/2026
9.0.15 23 04/16/2026
9.0.14 26 03/12/2026
9.0.13 36 02/12/2026
9.0.12 41 01/14/2026
9.0.11 35 12/13/2025
9.0.10 39 12/11/2025
9.0.9 41 12/13/2025
9.0.8 32 12/16/2025
9.0.7 37 12/16/2025
9.0.6 26 12/14/2025
9.0.5 40 12/14/2025
9.0.4 43 12/10/2025
9.0.3 35 12/15/2025
9.0.2 38 12/13/2025
9.0.1 35 12/16/2025
9.0.0 40 12/13/2025
9.0.0-rc.2.24473.5 35 12/15/2025
9.0.0-rc.1.24431.7 30 12/13/2025
9.0.0-preview.7.24405.7 37 12/16/2025
9.0.0-preview.6.24327.7 46 12/11/2025
9.0.0-preview.5.24306.7 42 12/16/2025
9.0.0-preview.4.24266.19 36 12/10/2025
9.0.0-preview.3.24172.9 33 12/16/2025
9.0.0-preview.2.24128.5 30 12/16/2025
9.0.0-preview.1.24080.9 32 12/13/2025
8.0.0 1,252 12/10/2025
8.0.0-rc.2.23479.6 29 12/16/2025
8.0.0-rc.1.23419.4 31 12/13/2025
8.0.0-preview.7.23375.6 32 12/15/2025
8.0.0-preview.6.23329.7 47 12/13/2025
8.0.0-preview.5.23280.8 39 12/16/2025
8.0.0-preview.4.23259.5 24 12/13/2025
8.0.0-preview.3.23174.8 32 12/13/2025
8.0.0-preview.2.23128.3 38 12/16/2025
8.0.0-preview.1.23110.8 35 12/13/2025
7.0.0 637 12/13/2025
7.0.0-rc.2.22472.3 28 12/16/2025
7.0.0-rc.1.22426.10 31 12/16/2025
7.0.0-preview.7.22375.6 32 12/15/2025
7.0.0-preview.6.22324.4 26 12/16/2025
7.0.0-preview.5.22301.12 45 12/13/2025
7.0.0-preview.4.22229.4 37 12/16/2025
7.0.0-preview.3.22175.4 25 12/13/2025
7.0.0-preview.2.22152.2 27 12/13/2025
7.0.0-preview.1.22076.8 41 12/13/2025
6.0.2-mauipre.1.22102.15 33 12/28/2025
6.0.2-mauipre.1.22054.8 38 12/11/2025
6.0.1 43 12/16/2025
6.0.0 1,250 12/10/2025
6.0.0-rc.2.21480.5 32 12/16/2025
6.0.0-rc.1.21451.13 35 12/13/2025
6.0.0-preview.7.21377.19 25 12/21/2025
6.0.0-preview.6.21352.12 30 12/13/2025
6.0.0-preview.5.21301.5 38 12/16/2025
6.0.0-preview.4.21253.7 30 12/16/2025
6.0.0-preview.3.21201.4 34 12/13/2025
6.0.0-preview.2.21154.6 32 12/16/2025
6.0.0-preview.1.21102.12 40 12/13/2025
5.0.0 40 12/13/2025
5.0.0-rc.2.20475.5 26 12/16/2025
5.0.0-rc.1.20451.14 30 12/16/2025
5.0.0-preview.8.20407.11 33 12/13/2025
5.0.0-preview.7.20364.11 35 12/12/2025
5.0.0-preview.6.20305.6 30 12/13/2025
5.0.0-preview.5.20278.1 29 12/16/2025
5.0.0-preview.4.20251.6 32 12/16/2025
5.0.0-preview.3.20214.6 28 12/16/2025
5.0.0-preview.2.20160.6 38 12/16/2025
5.0.0-preview.1.20120.5 28 12/13/2025
4.7.1 30 12/13/2025
4.7.0 34 01/02/2026
4.7.0-preview3.19551.4 45 12/13/2025
4.7.0-preview2.19523.17 31 12/16/2025
4.7.0-preview1.19504.10 34 12/10/2025
4.6.0 35 12/16/2025
4.6.0-rc1.19456.4 31 12/16/2025
4.6.0-preview9.19421.4 33 12/16/2025
4.6.0-preview9.19416.11 35 12/16/2025
4.6.0-preview8.19405.3 34 12/13/2025
4.6.0-preview7.19362.9 37 12/13/2025
4.6.0-preview6.19303.8 31 12/21/2025
4.6.0-preview6.19264.9 37 12/16/2025
4.6.0-preview5.19224.8 48 12/13/2025
4.6.0-preview4.19212.13 42 12/16/2025
4.6.0-preview3.19128.7 36 12/16/2025
4.6.0-preview.19073.11 35 12/15/2025
4.6.0-preview.18571.3 25 12/16/2025
4.5.1 1,075 12/10/2025
4.5.1-servicing-27114-05 40 12/16/2025
4.5.0 30 12/16/2025
4.5.0-rc1 27 12/16/2025
4.5.0-preview2-26406-04 28 12/16/2025
4.5.0-preview1-26216-02 35 12/16/2025
4.5.0-preview1-25914-04 39 12/13/2025
4.4.0 34 12/16/2025
4.4.0-preview2-25405-01 33 12/16/2025
4.4.0-preview1-25305-02 32 12/16/2025
4.3.0 31 12/16/2025
4.3.0-preview1-24530-04 26 12/16/2025
4.0.1 140 12/13/2025
4.0.1-rc2-24027 34 12/21/2025
4.0.1-beta-23516 25 12/17/2025
4.0.1-beta-23409 28 12/16/2025
4.0.1-beta-23225 29 12/16/2025
4.0.0 38 12/14/2025
4.0.0-beta-23109 34 12/16/2025
4.0.0-beta-23019 33 12/16/2025
4.0.0-beta-22816 31 12/13/2025
4.0.0-beta-22605 28 12/14/2025
4.0.0-beta-22416 29 12/16/2025
4.0.0-beta-22231 32 12/10/2025