System.Text.Encoding.CodePages 11.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 When using NuGet 3.x this package requires at least version 3.4.
964
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.
898
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
659
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/8de9e4b2beba5b7c0edd6f1e6a4f192a51fdc872.
452
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/34202cc2f3e869fd70a26d8237f4552cf9e192cf.
438
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
432
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
201
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL 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.
119
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
71
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
57
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.
50
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.
49
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL 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.
48
AngleSharp
AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
46
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 (more than 25x faster than OpenPOP.NET and over 100x faster than AE.Net.Mail and MailSystem.NET). 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 massive limitations or bugs. 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
46
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.
44
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 (more than 25x faster than OpenPOP.NET and over 100x faster than AE.Net.Mail and MailSystem.NET). 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 massive limitations or bugs. 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
44
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
44
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 029cf57733b7ec6c1dd8a13857e800b9a8d97192 When using NuGet 3.x this package requires at least version 3.4.
41

.NET 10.0

  • No dependencies.

.NET 11.0

  • No dependencies.

.NET Framework 4.6.2

.NET Standard 2.0

Version Downloads Last updated
11.0.0 1 11/15/2026
11.0.0-rc.3.26522.148 7 11/08/2026
11.0.0-rc.2.26504.105 14 10/14/2026
11.0.0-rc.1.26425.128 11 09/10/2026
11.0.0-preview.7.26381.103 16 08/12/2026
11.0.0-preview.6.26359.118 14 07/16/2026
11.0.0-preview.5.26302.115 28 06/23/2026
11.0.0-preview.4.26230.115 31 05/14/2026
11.0.0-preview.3.26207.106 31 06/28/2026
11.0.0-preview.2.26159.112 32 06/26/2026
11.0.0-preview.1.26104.118 29 06/23/2026
10.0.15 2 11/16/2026
10.0.14 8 11/08/2026
10.0.13 8 10/14/2026
10.0.12 11 09/17/2026
10.0.11 19 08/12/2026
10.0.10 13 07/16/2026
10.0.9 30 07/05/2026
10.0.8 44 05/14/2026
10.0.7 38 05/30/2026
10.0.6 43 05/30/2026
10.0.5 32 03/17/2026
10.0.4 40 03/17/2026
10.0.3 35 03/17/2026
10.0.2 30 01/25/2026
10.0.1 48 12/21/2025
10.0.0 36 12/20/2025
10.0.0-rc.2.25502.107 34 11/05/2025
10.0.0-rc.1.25451.107 36 09/17/2025
10.0.0-preview.7.25380.108 38 08/29/2025
10.0.0-preview.6.25358.103 29 07/20/2025
10.0.0-preview.5.25277.114 30 06/13/2025
10.0.0-preview.4.25258.110 29 07/07/2026
10.0.0-preview.3.25171.5 13 05/02/2025
10.0.0-preview.2.25163.2 31 07/11/2026
10.0.0-preview.1.25080.5 43 06/23/2026
9.0.23 1 11/15/2026
9.0.22 3 11/15/2026
9.0.21 4 10/14/2026
9.0.20 12 09/12/2026
9.0.19 13 08/12/2026
9.0.18 17 07/16/2026
9.0.17 33 07/03/2026
9.0.16 29 06/28/2026
9.0.15 17 06/30/2026
9.0.14 40 07/04/2026
9.0.13 41 06/30/2026
9.0.12 38 06/27/2026
9.0.11 33 06/28/2026
9.0.10 13 07/11/2026
9.0.9 34 06/23/2026
9.0.8 36 06/23/2026
9.0.7 40 06/23/2026
9.0.6 30 06/23/2026
9.0.5 37 06/23/2026
9.0.4 39 05/03/2025
9.0.3 36 08/24/2025
9.0.2 49 02/18/2025
9.0.1 49 01/24/2025
9.0.0 35 11/13/2024
9.0.0-rc.2.24473.5 15 11/14/2024
9.0.0-rc.1.24431.7 17 09/19/2024
9.0.0-preview.7.24405.7 35 07/07/2026
9.0.0-preview.6.24327.7 26 07/20/2024
9.0.0-preview.5.24306.7 40 07/15/2026
9.0.0-preview.4.24266.19 34 07/14/2024
9.0.0-preview.3.24172.9 20 05/07/2024
9.0.0-preview.2.24128.5 37 06/23/2026
9.0.0-preview.1.24080.9 17 06/21/2026
8.0.0 65 12/25/2023
8.0.0-rc.2.23479.6 34 02/17/2025
8.0.0-rc.1.23419.4 35 11/16/2024
8.0.0-preview.7.23375.6 15 12/14/2024
8.0.0-preview.6.23329.7 36 12/21/2023
8.0.0-preview.5.23280.8 25 03/10/2025
8.0.0-preview.4.23259.5 12 10/28/2025
8.0.0-preview.3.23174.8 35 09/17/2024
8.0.0-preview.2.23128.3 46 03/05/2024
8.0.0-preview.1.23110.8 39 01/27/2024
7.0.0 65 01/08/2024
7.0.0-rc.2.22472.3 45 01/02/2024
7.0.0-rc.1.22426.10 34 01/12/2024
7.0.0-preview.7.22375.6 35 12/03/2024
7.0.0-preview.6.22324.4 34 11/12/2025
7.0.0-preview.5.22301.12 15 07/18/2024
7.0.0-preview.4.22229.4 41 10/11/2024
7.0.0-preview.3.22175.4 34 10/09/2024
7.0.0-preview.2.22152.2 40 01/29/2024
7.0.0-preview.1.22076.8 8 09/19/2024
6.0.2-mauipre.1.22102.15 31 01/09/2024
6.0.2-mauipre.1.22054.8 37 01/20/2025
6.0.1 29 06/23/2026
6.0.0 107 01/08/2024
6.0.0-rc.2.21480.5 23 03/20/2025
6.0.0-rc.1.21451.13 41 05/28/2024
6.0.0-preview.7.21377.19 39 02/06/2024
6.0.0-preview.6.21352.12 17 03/23/2025
6.0.0-preview.5.21301.5 37 12/24/2023
6.0.0-preview.4.21253.7 15 12/20/2023
6.0.0-preview.3.21201.4 16 01/01/2024
6.0.0-preview.2.21154.6 33 11/10/2024
6.0.0-preview.1.21102.12 43 01/02/2024
5.0.0 657 04/27/2021
5.0.0-rc.2.20475.5 46 12/18/2023
5.0.0-rc.1.20451.14 30 12/17/2023
5.0.0-preview.8.20407.11 35 04/26/2025
5.0.0-preview.7.20364.11 52 05/07/2024
5.0.0-preview.6.20305.6 15 03/14/2024
5.0.0-preview.5.20278.1 36 06/30/2026
5.0.0-preview.4.20251.6 31 03/19/2025
5.0.0-preview.3.20214.6 33 09/16/2024
5.0.0-preview.2.20160.6 29 04/30/2024
5.0.0-preview.1.20120.5 45 12/22/2023
4.7.1 48 12/21/2023
4.7.0 741 02/16/2021
4.7.0-preview3.19551.4 13 05/02/2024
4.7.0-preview2.19523.17 35 01/11/2025
4.7.0-preview1.19504.10 34 06/24/2026
4.6.0 36 04/06/2024
4.6.0-rc1.19456.4 36 05/08/2024
4.6.0-preview9.19421.4 25 12/12/2023
4.6.0-preview9.19416.11 38 06/25/2024
4.6.0-preview8.19405.3 42 12/23/2023
4.6.0-preview7.19362.9 27 12/30/2023
4.6.0-preview6.19303.8 39 06/04/2024
4.6.0-preview6.19264.9 30 06/23/2026
4.6.0-preview5.19224.8 27 06/24/2026
4.6.0-preview4.19212.13 15 02/11/2024
4.6.0-preview3.19128.7 37 05/26/2024
4.6.0-preview.19073.11 33 06/23/2026
4.6.0-preview.18571.3 48 02/25/2024
4.5.1 691 02/28/2021
4.5.1-servicing-27114-05 11 03/25/2024
4.5.0 45 02/24/2021
4.5.0-rc1 50 11/11/2024
4.5.0-preview2-26406-04 34 12/17/2023
4.5.0-preview1-26216-02 35 03/08/2025
4.5.0-preview1-25914-04 22 08/29/2024
4.4.0 815 04/20/2021
4.4.0-preview2-25405-01 37 01/06/2024
4.4.0-preview1-25305-02 34 01/21/2025
4.3.0 23 09/03/2021
4.3.0-preview1-24530-04 17 03/20/2024
4.0.1 33 03/30/2021
4.0.1-rc2-24027 35 12/22/2023
4.0.1-beta-23516 28 07/03/2026
4.0.1-beta-23409 11 09/13/2024
4.0.1-beta-23225 26 04/23/2024
4.0.0 38 03/10/2024
4.0.0-beta-23109 37 07/19/2024
4.0.0-beta-23019 34 01/18/2024
4.0.0-beta-22816 27 07/04/2026
4.0.0-beta-22605 30 04/13/2024
4.0.0-beta-22416 26 05/18/2024
4.0.0-beta-22231 28 12/28/2023