System.Text.Encoding.CodePages 10.0.0-rc.2.25502.107

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.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluation MSBuild projects.
54
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.
52
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.
51
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.
50
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
49
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/e5eb71d6714749bccf91d9268ece78cd5d4d43ea.
48
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.
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.
47
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
47
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
47
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
47
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
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
46
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.
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. 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
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
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
45

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