System.Text.Encoding.CodePages 9.0.4

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package System.Text.Encoding.CodePages --version 9.0.4
                    
NuGet\Install-Package System.Text.Encoding.CodePages -Version 9.0.4
                    
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="9.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="System.Text.Encoding.CodePages" Version="9.0.4" />
                    
Directory.Packages.props
<PackageReference Include="System.Text.Encoding.CodePages" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add System.Text.Encoding.CodePages --version 9.0.4
                    
#r "nuget: System.Text.Encoding.CodePages, 9.0.4"
                    
#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.
#addin nuget:?package=System.Text.Encoding.CodePages&version=9.0.4
                    
Install System.Text.Encoding.CodePages as a Cake Addin
#tool nuget:?package=System.Text.Encoding.CodePages&version=9.0.4
                    
Install System.Text.Encoding.CodePages as a Cake Tool

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.  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. 
.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.

NuGet packages (1.6K)

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/75e79dace86b274327a1afe479228d82a06051a4.

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/75e79dace86b274327a1afe479228d82a06051a4.

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/75e79dace86b274327a1afe479228d82a06051a4.

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/75e79dace86b274327a1afe479228d82a06051a4.

Microsoft.CodeAnalysis.VisualBasic

.NET Compiler Platform ("Roslyn") support for Visual Basic, Microsoft.CodeAnalysis.VisualBasic.dll. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/75e79dace86b274327a1afe479228d82a06051a4.

GitHub repositories (381)

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

Repository Stars
microsoft/PowerToys
Windows system utilities to maximize productivity
PowerShell/PowerShell
PowerShell for every system!
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.
Jackett/Jackett
API Support for your favorite torrent trackers
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.
JeffreySu/WeiXinMPSDK
微信全平台 .NET SDK, Senparc.Weixin for C#,支持 .NET Framework 及 .NET Core、.NET 8.0。已支持微信公众号、小程序、小游戏、微信支付、企业微信/企业号、开放平台、JSSDK、微信周边等全平台。 WeChat SDK for C#.
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大杂烩~
neuecc/UniRx
Reactive Extensions for Unity
stride3d/stride
Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
jstedfast/MailKit
A cross-platform .NET library for IMAP, POP3, and SMTP.
dotnet/msbuild
The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio.
AngleSharp/AngleSharp
:angel: The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
Version Downloads Last updated
10.0.0-preview.3.25171.5 311 4/10/2025
10.0.0-preview.2.25163.2 1,930 3/18/2025
10.0.0-preview.1.25080.5 3,009 2/25/2025
9.0.4 17,832 4/8/2025
9.0.3 304,776 3/11/2025
9.0.2 409,382 2/11/2025
9.0.1 802,343 1/14/2025
9.0.0 1,223,823 11/12/2024
9.0.0-rc.2.24473.5 31,273 10/8/2024
9.0.0-rc.1.24431.7 24,798 9/10/2024
9.0.0-preview.7.24405.7 14,465 8/13/2024
9.0.0-preview.6.24327.7 24,307 7/9/2024
9.0.0-preview.5.24306.7 16,697 6/11/2024
9.0.0-preview.4.24266.19 7,146 5/21/2024
9.0.0-preview.3.24172.9 17,721 4/11/2024
9.0.0-preview.2.24128.5 5,174 3/12/2024
9.0.0-preview.1.24080.9 30,371 2/13/2024
8.0.0 44,120,047 11/14/2023
8.0.0-rc.2.23479.6 50,459 10/10/2023
8.0.0-rc.1.23419.4 73,814 9/12/2023
8.0.0-preview.7.23375.6 58,752 8/8/2023
8.0.0-preview.6.23329.7 9,843 7/11/2023
8.0.0-preview.5.23280.8 8,874 6/13/2023
8.0.0-preview.4.23259.5 22,134 5/16/2023
8.0.0-preview.3.23174.8 34,712 4/11/2023
8.0.0-preview.2.23128.3 23,871 3/14/2023
8.0.0-preview.1.23110.8 28,435 2/21/2023
7.0.0 69,287,088 11/7/2022
7.0.0-rc.2.22472.3 63,751 10/11/2022
7.0.0-rc.1.22426.10 72,976 9/14/2022
7.0.0-preview.7.22375.6 18,401 8/9/2022
7.0.0-preview.6.22324.4 8,292 7/12/2022
7.0.0-preview.5.22301.12 8,886 6/14/2022
7.0.0-preview.4.22229.4 16,116 5/10/2022
7.0.0-preview.3.22175.4 7,937 4/13/2022
7.0.0-preview.2.22152.2 16,646 3/14/2022
7.0.0-preview.1.22076.8 7,626 2/17/2022
6.0.1 67,606 11/12/2024
6.0.0 312,171,060 11/8/2021
6.0.0-rc.2.21480.5 32,250 10/12/2021
6.0.0-rc.1.21451.13 17,703 9/14/2021
6.0.0-preview.7.21377.19 17,403 8/10/2021
6.0.0-preview.6.21352.12 30,996 7/14/2021
6.0.0-preview.5.21301.5 10,907 6/15/2021
6.0.0-preview.4.21253.7 26,737 5/24/2021
6.0.0-preview.3.21201.4 17,873 4/8/2021
6.0.0-preview.2.21154.6 38,509 3/11/2021
6.0.0-preview.1.21102.12 44,622 2/12/2021
5.0.0 234,513,125 11/9/2020 5.0.0 is deprecated because it is no longer maintained.
5.0.0-rc.2.20475.5 25,218 10/13/2020
5.0.0-rc.1.20451.14 34,622 9/14/2020
5.0.0-preview.8.20407.11 21,778 8/25/2020
5.0.0-preview.7.20364.11 61,380 7/21/2020
5.0.0-preview.6.20305.6 255,663 6/25/2020
5.0.0-preview.5.20278.1 30,556 6/10/2020
5.0.0-preview.4.20251.6 23,305 5/18/2020
5.0.0-preview.3.20214.6 49,052 4/23/2020
5.0.0-preview.2.20160.6 6,823 4/2/2020
5.0.0-preview.1.20120.5 35,546 3/16/2020
4.7.1 40,553,756 5/12/2020
4.7.0 333,431,443 12/3/2019
4.7.0-preview3.19551.4 93,821 11/13/2019
4.7.0-preview2.19523.17 26,426 11/1/2019
4.7.0-preview1.19504.10 47,470 10/15/2019
4.6.0 15,154,505 9/23/2019
4.6.0-rc1.19456.4 66,075 9/16/2019
4.6.0-preview9.19421.4 13,879 9/4/2019
4.6.0-preview9.19416.11 1,354 9/4/2019
4.6.0-preview8.19405.3 50,292 8/13/2019
4.6.0-preview7.19362.9 46,459 7/23/2019
4.6.0-preview6.19303.8 1,184,906 6/12/2019
4.6.0-preview6.19264.9 1,471 9/4/2019
4.6.0-preview5.19224.8 169,459 5/6/2019
4.6.0-preview4.19212.13 311,334 4/18/2019
4.6.0-preview3.19128.7 139,550 3/6/2019
4.6.0-preview.19073.11 635,350 1/29/2019
4.6.0-preview.18571.3 86,403 12/3/2018
4.5.1 435,305,396 1/8/2019
4.5.1-servicing-27114-05 3,969 11/28/2018
4.5.0 254,172,184 5/29/2018
4.5.0-rc1 395,286 5/6/2018
4.5.0-preview2-26406-04 465,762 4/10/2018
4.5.0-preview1-26216-02 370,717 2/26/2018
4.5.0-preview1-25914-04 368,400 11/15/2017
4.4.0 283,886,670 8/11/2017
4.4.0-preview2-25405-01 266,803 6/27/2017
4.4.0-preview1-25305-02 192,553 5/9/2017
4.3.0 263,289,859 11/15/2016
4.3.0-preview1-24530-04 35,035 10/24/2016
4.0.1 241,604,845 6/27/2016
4.0.1-rc2-24027 2,368,384 5/16/2016
4.0.1-beta-23516 129,689 11/18/2015
4.0.1-beta-23409 22,601 10/15/2015
4.0.1-beta-23225 15,930 9/2/2015
4.0.0 2,065,121 7/29/2015
4.0.0-beta-23109 11,176 7/27/2015
4.0.0-beta-23019 21,238 6/30/2015
4.0.0-beta-22816 24,057 4/24/2015
4.0.0-beta-22605 8,939 2/13/2015
4.0.0-beta-22416 3,714 1/16/2015
4.0.0-beta-22231 5,052 11/11/2014