System.Text.Encoding.CodePages
10.0.3
Prefix Reserved
See the version list below for details.
dotnet add package System.Text.Encoding.CodePages --version 10.0.3
NuGet\Install-Package System.Text.Encoding.CodePages -Version 10.0.3
<PackageReference Include="System.Text.Encoding.CodePages" Version="10.0.3" />
<PackageVersion Include="System.Text.Encoding.CodePages" Version="10.0.3" />
<PackageReference Include="System.Text.Encoding.CodePages" />
paket add System.Text.Encoding.CodePages --version 10.0.3
#r "nuget: System.Text.Encoding.CodePages, 10.0.3"
#:package System.Text.Encoding.CodePages@10.0.3
#addin nuget:?package=System.Text.Encoding.CodePages&version=10.0.3
#tool nuget:?package=System.Text.Encoding.CodePages&version=10.0.3
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.
| Product | Versions 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. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .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. |
-
.NETFramework 4.6.2
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.ValueTuple (>= 4.6.1)
-
.NETStandard 2.0
- System.Memory (>= 4.6.3)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
-
net10.0
- No dependencies.
-
net8.0
- No dependencies.
-
net9.0
- No dependencies.
NuGet packages (1.7K)
Showing the top 5 NuGet packages that depend on System.Text.Encoding.CodePages:
| Package | Downloads |
|---|---|
|
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/adb4347a172149b3ec18552da62e4da6fb2cf362. |
|
|
Microsoft.CodeAnalysis.CSharp
.NET Compiler Platform ("Roslyn") support for C#, Microsoft.CodeAnalysis.CSharp.dll. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/adb4347a172149b3ec18552da62e4da6fb2cf362. |
|
|
Microsoft.CodeAnalysis.Workspaces.Common
A shared package used by the .NET Compiler Platform ("Roslyn") including support for analyzing projects and solutions. 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/adb4347a172149b3ec18552da62e4da6fb2cf362. |
|
|
Microsoft.CodeAnalysis.CSharp.Workspaces
.NET Compiler Platform ("Roslyn") support for analyzing C# projects and solutions. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/adb4347a172149b3ec18552da62e4da6fb2cf362. |
|
|
SharpCompress
SharpCompress is a compression library for NET 4.8/NET Standard 2.0/NET 8.0/NET 10.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. |
GitHub repositories (399)
Showing the top 20 popular GitHub repositories that depend on System.Text.Encoding.CodePages:
| Repository | Stars |
|---|---|
|
microsoft/PowerToys
Microsoft PowerToys is a collection of utilities that supercharge productivity and customization on Windows
|
|
|
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
|
|
|
Jackett/Jackett
API Support for your favorite torrent trackers
|
|
|
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.
|
|
|
Sonarr/Sonarr
Smart PVR for newsgroup and bittorrent users.
|
|
|
Radarr/Radarr
Movie organizer/manager for usenet and torrent users.
|
|
|
chocolatey/choco
Chocolatey - the package manager for Windows
|
|
|
mRemoteNG/mRemoteNG
mRemoteNG is the next generation of mRemote, open source, tabbed, multi-protocol, remote connections manager.
|
|
|
studyzy/imewlconverter
”深蓝词库转换“ 一款开源免费的输入法词库转换程序
|
|
|
AutoDarkMode/Windows-Auto-Night-Mode
Automatically switches between the dark and light theme of Windows 10 and Windows 11
|
|
|
XINCGer/Unity3DTraining
【Unity杂货铺】unity大杂烩~
|
|
|
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 10.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
|
|
|
stride3d/stride
Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
|
|
|
neuecc/UniRx
Reactive Extensions for Unity
|
|
|
jstedfast/MailKit
A cross-platform .NET library for IMAP, POP3, and SMTP.
|
|
|
Prowlarr/Prowlarr
Prowlarr is an indexer manager/proxy built on the popular *arr .net/reactjs base stack to integrate with your various PVR apps, supporting management of both Torrent Trackers and Usenet Indexers.
|
|
|
actions/runner
The Runner for GitHub Actions :rocket:
|
|
|
dotnet/msbuild
The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.1.26104.118 | 172 | 2/10/2026 |
| 10.0.3 | 15,714 | 2/10/2026 |
| 10.0.2 | 214,208 | 1/13/2026 |
| 10.0.1 | 383,180 | 12/9/2025 |
| 10.0.0 | 678,611 | 11/11/2025 |
| 10.0.0-rc.2.25502.107 | 25,696 | 10/14/2025 |
| 10.0.0-rc.1.25451.107 | 35,391 | 9/9/2025 |
| 10.0.0-preview.7.25380.108 | 3,398 | 8/12/2025 |
| 10.0.0-preview.6.25358.103 | 24,397 | 7/15/2025 |
| 10.0.0-preview.5.25277.114 | 30,706 | 6/6/2025 |
| 10.0.0-preview.4.25258.110 | 5,392 | 5/12/2025 |
| 9.0.13 | 2,577 | 2/10/2026 |
| 9.0.12 | 49,789 | 1/13/2026 |
| 9.0.11 | 515,093 | 11/11/2025 |
| 9.0.10 | 1,189,477 | 10/14/2025 |
| 9.0.9 | 1,418,295 | 9/9/2025 |
| 9.0.8 | 1,209,742 | 8/4/2025 |
| 9.0.7 | 1,091,817 | 7/8/2025 |
| 9.0.6 | 1,266,747 | 6/10/2025 |
| 9.0.5 | 1,169,974 | 5/13/2025 |