System.Text.Encoding.CodePages 10.0.1

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
Microsoft.CodeAnalysis
.NET Compiler Platform ("Roslyn"). This is the all-in-one package (a superset of all assemblies). You can install any of these sub-packages if you only want part of the functionality: - "Microsoft.CodeAnalysis.CSharp.Workspaces" (C# compiler + services) - "Microsoft.CodeAnalysis.VisualBasic.Workspaces" (VB compiler + services) - "Microsoft.CodeAnalysis.Compilers" (both compilers) - "Microsoft.CodeAnalysis.CSharp" (only the C# compiler) - "Microsoft.CodeAnalysis.VisualBasic (only the VB compiler) More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/e482b6e281d7db727fcb086ebbfae44dcba82c6d.
2
Microsoft.Build.Tasks.Core
This package contains the Microsoft.Build.Tasks assembly which implements the commonly used tasks of MSBuild.
1
Microsoft.Build.Tasks.Core
This package contains the Microsoft.Build.Tasks.Core assembly which implements the commonly used tasks of MSBuild.
1
Microsoft.CodeAnalysis.CSharp.Scripting
Microsoft .NET Compiler Platform ("Roslyn") CSharp scripting package. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/e68227ea677b76a3c603bd616f03ea6d952b2458.
1
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NET. Contains .NET Native 1.6 plus a fix for an issue that caused MAKEPRI build warnings to be emitted when building app packages for UWP projects. When using Visual Studio this package requires Visual Studio 2017 or later. When using NuGet 3.x this package requires at least version 3.4.
1
Microsoft.CodeAnalysis.CSharp.Scripting
Microsoft .NET Compiler Platform ("Roslyn") CSharp scripting package. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/bf8791d0d1be92c24e56cefa52aa139e2b5340c2.
1
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.
1
MailKit
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices. Features include: * Socks4, Socks4a and Socks5 proxy support. * SASL Authentication via SCRAM-SHA-256, SCRAM-SHA-1, NTLM, DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN, and XOAUTH2. * A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8. * A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG. * A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, LIST-EXTENDED, ESORT, METADATA / METADATA-SERVER, NOTIFY, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE / CREATE-SPECIAL-USE, SEARCH=FUZZY, MOVE, UTF8=ACCEPT / UTF8=ONLY, LITERAL-, APPENDLIMIT, STATUS=SIZE, OBJECTID, XLIST, and X-GM-EXT1. * Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported). * Asynchronous versions of all methods that hit the network. * S/MIME, OpenPGP and DKIM signature support via MimeKit. * Microsoft TNEF support via MimeKit.
1
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
1
MimeKit
MimeKit is an Open Source library for creating and parsing MIME, S/MIME and PGP messages on desktop and mobile platforms. 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
1
MailKit
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices. Features include: * SASL Authentication via SCRAM-SHA-256, SCRAM-SHA-1, NTLM, DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN, and XOAUTH2. * A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8. * A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG. * A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ESORT, METADATA, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE, CREATE-SPECIAL-USE, MOVE, SEARCH=FUZZY, UTF8=ACCEPT, UTF8=ONLY, LITERAL-, APPENDLIMIT, XLIST, and X-GM-EXT1. * Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported). * Asynchronous versions of all methods that hit the network. * S/MIME, OpenPGP and DKIM signature support via MimeKit. * Microsoft TNEF support via MimeKit.
1

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