System.Text.Encoding.CodePages 10.0.0-preview.5.25277.101

Prefix Reserved
This is a prerelease version of System.Text.Encoding.CodePages.
dotnet add package System.Text.Encoding.CodePages --version 10.0.0-preview.5.25277.101                
NuGet\Install-Package System.Text.Encoding.CodePages -Version 10.0.0-preview.5.25277.101                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="System.Text.Encoding.CodePages" Version="10.0.0-preview.5.25277.101" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add System.Text.Encoding.CodePages --version 10.0.0-preview.5.25277.101                
#r "nuget: System.Text.Encoding.CodePages, 10.0.0-preview.5.25277.101"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install System.Text.Encoding.CodePages as a Cake Addin
#addin nuget:?package=System.Text.Encoding.CodePages&version=10.0.0-preview.5.25277.101&prerelease

// Install System.Text.Encoding.CodePages as a Cake Tool
#tool nuget:?package=System.Text.Encoding.CodePages&version=10.0.0-preview.5.25277.101&prerelease                

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net10.0 is compatible. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed.  monoandroid10 is compatible. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed.  monotouch10 is compatible. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed.  xamarinios10 is compatible. 
Xamarin.Mac xamarinmac was computed.  xamarinmac20 is compatible. 
Xamarin.TVOS xamarintvos was computed.  xamarintvos10 is compatible. 
Xamarin.WatchOS xamarinwatchos was computed.  xamarinwatchos10 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories (379)

Showing the top 5 popular GitHub repositories that depend on System.Text.Encoding.CodePages:

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
dotnet/roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
netchx/netch
A simple proxy client
abpframework/abp
Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
Version Downloads Last updated
10.0.0-preview.5.25277.101 0 5/29/2025
10.0.0-preview.5.25266.103 0 5/20/2025
10.0.0-preview.4.25255.103 0 5/12/2025
4.6.0-preview.19073.11 8 1/28/2019
4.6.0-preview.18571.3 4 11/30/2018
4.0.0 24,626 7/20/2015
4.0.0-beta-23019 5,723 6/29/2015
4.0.0-beta-22816 13,597 4/24/2015
4.0.0-beta-22605 4,598 2/13/2015
4.0.0-beta-22416 53 1/16/2015
4.0.0-beta-22231 499 11/11/2014