System.Text.Encoding.CodePages 10.0.0-rc.1.25451.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.
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.
49
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
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.
45
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.
45
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
45
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
45
SixLabors.ImageSharp
A new, fully featured, fully managed, cross-platform, 2D graphics API for .NET
45
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
44
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 as well as .NET Standard.
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
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.
43
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
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/8de9e4b2beba5b7c0edd6f1e6a4f192a51fdc872.
43
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore. 6b0dee9970b5ea524dbcd352cd5cbb911b8cf13f When using NuGet 3.x this package requires at least version 3.4.
43

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