System.Text.Encoding.CodePages
v11.0.0-rc.3.26522.148Latest Pre-release
net10.0net11.0.NETFramework4.6.2.NETStandard2.0
Provides support for code-page based encodings, including Windows-1252, Shift-JIS, and GB2312. Commonly Used Types: System.Text.CodePagesEncodingProvider
Published
Oct 25, 2026
5d ago
Total Downloads
3.7B
3,748,081,506
Install
dotnet add package System.Text.Encoding.CodePages --version 11.0.0-rc.3.26522.148
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
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
Related Packages
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.
Changes from Previous Version
No structural changes between v11.0.0-rc.2.26504.105 and v11.0.0-rc.3.26522.148.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.