System.Text.Encoding.CodePages 10.0.0-preview.6.25358.103

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
DevExpress.Printing.Core
This package implements core functionality for cross-platform printing and exporting DevExpress controls.
31
DevExpress.Printing.Core
This package implements core functionality for cross-platform printing and exporting DevExpress controls.
20
DevExpress.Printing.Core
This package implements core functionality for cross-platform printing and exporting DevExpress controls.
17
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
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.
11
DevExpress.Data
This package provides basic functionality for data-aware DevExpress controls.
10
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.
10
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.
9
EPPlus
A spreadsheet library for .NET framework and .NET core
8
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.
8
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.
8
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/1ce8866c9de4c2d67351ef6863699dee03b0804a.
7
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
7
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.
7
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.
7
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.
7
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore. d67bd83a075b8b10cb95810568073c1a3211f28b When using NuGet 3.x this package requires at least version 3.4.
7
MimeKitLite
MimeKit is an Open Source library for creating and parsing MIME messages. It also supports parsing of Unix mbox files. Unlike any other .NET MIME parser, MimeKit's parser does not need to parse string input nor does it use a TextReader. Instead, it parses raw byte streams, thus allowing it to better support undeclared 8bit text in headers as well as message bodies. It also means that MimeKit's parser is significantly faster than other .NET MIME parsers. MimeKit's parser also uses a real tokenizer when parsing the headers rather than regex or string.Split() like most other .NET MIME parsers. This means that MimeKit is much more RFC-compliant than any other .NET MIME parser out there, including the commercial implementations. In addition to having a far superior parser implementation, MimeKit's object tree is not a derivative of System.Net.Mail objects and thus does not suffer from System.Net.Mail's limitations. API documentation can be found on the web at http://www.mimekit.net/docs For those that need SMTP, POP3 or IMAP support, check out https://github.com/jstedfast/MailKit
7

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