System.Text.Encoding.CodePages 8.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
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.
773
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.
372
Flurl.Http
A fluent, testable HTTP client library.
259
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
184
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.
115
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
100
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.
76
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
59
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/43b0b05cc4f492fd5de00f6f6717409091df8daa.
49
QRCoder-ImageSharp
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes. Based on ImageSharp to provide plattform independency.
41
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.
31
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
29
Syncfusion.Pdf.Net.Core
The Syncfusion Essential PDF is a .NET standard PDF library that enables your .NET core applications to read, write, and manipulate existing PDF documents. It has various features such table creation, PDF form creation and filling, digital signature, and advanced PDF encryption. It also has various PDF manipulation features such as PDF compression, redaction, split and merge PDF, watermark, import and export PDF form data, replace or remove images, extract text and find text.
27
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/c94e32157c34fa777f674242cd08cfdc98737d62.
17
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/df45061e218c9b5813c5531bc06fb238a23e30f6.
16
MySql.Data
MySql.Data.MySqlClient .Net Core Class Library
15
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
14
Syncfusion.Pdf.Net.Core
The Syncfusion® Essential PDF is a .NET standard PDF library that enables your .NET core applications to read, write, and manipulate existing PDF documents. It has various features such table creation, PDF form creation and filling, digital signature, and advanced PDF encryption. It also has various PDF manipulation features such as PDF compression, redaction, split and merge PDF, watermark, import and export PDF form data, replace or remove images, extract text and find text.
14
Aspose.PDF
Aspose.PDF for .NET is a PDF document creation and manipulation component that enables your .NET applications to read, write and manipulate existing PDF documents without using Adobe Acrobat. It also allows you to create forms and manage form fields embedded in a PDF document. This component is written in managed C# and it allows developers to add PDF creation and manipulation functionality to their Microsoft .NET applications (WinForms, ASP.NET and .NET Compact Framework). Aspose.PDF for .NET is affordable and offers an incredible wealth of features including PDF compression options; table creation and manipulation; support for graph objects; extensive hyperlink functionality; extended security controls; custom font handling; integration with data sources; add or remove bookmarks; create table of contents; add, update, delete attachments and annotations; import or export PDF form data; add, replace or remove text and images; split, concatenate, extract or insert pages; transform pages to image; print PDF documents and much more.
4

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 6.0

.NET 7.0

  • No dependencies.

.NET 8.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
8.0.0 278 05/31/2024
5.0.0 10 02/22/2025
4.5.1 34 05/31/2024
4.5.0 987 05/31/2024
4.4.0 371 05/31/2024