System.Text.Encoding.CodePages 11.0.0-preview.6.26359.118

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
EPPlus
A spreadsheet library for .NET framework and .NET core
43
EPPlus
A spreadsheet library for .NET framework and .NET core
56
Flurl.Http
A fluent, portable, testable HTTP client library.
39
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.
43
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/e595ee276d14e14bfb3eb323fb57f2aa668bddea
651
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.
40
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.
277
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.
45
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.
64
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.
649
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
58
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
45
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
52
QRCoder
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.
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.
42
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.
653
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
42
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
43
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
51
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.
236

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

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