System.Text.Encoding.CodePages 9.0.15

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.CodeAnalysis.Workspaces.MSBuild
.NET Compiler Platform ("Roslyn") support for analyzing MSBuild projects and solutions. This should be used with at least one of the following packages to add the appropriate language support: - Microsoft.CodeAnalysis.CSharp.Workspaces - Microsoft.CodeAnalysis.VisualBasic.Workspaces More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/fa72fa61b0d822ea8a3fbeb96f668340419ab5cd.
26
System.Data.Odbc
Provides a collection of classes used to access an ODBC data source in the managed space Commonly Used Types: System.Data.Odbc.OdbcCommand System.Data.Odbc.OdbcConnection System.Data.Odbc.OdbcDataReader System.Data.Odbc.OdbcDataAdapter System.Data.Odbc.OdbcParameter System.Data.Odbc.OdbcParameterCollection System.Data.Odbc.OdbcTransaction
22
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/cf82d399c36008e7936d545cde24141f8d3790fa.
21
Spire.PDF
Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET. With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core, MonoAndroid and Xamarin.iOS platforms.
21
Spire.PDF
Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET. With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core
20
Spire.PDF
Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET. With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core, MonoAndroid and Xamarin.iOS platforms.
20
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
19
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
19
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/dfa7fc6bdea31a858a402168384192b633c811fa.
19
Spire.PDF
Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET. With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core
19
Spire.PDF
Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET. With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core, MonoAndroid and Xamarin.iOS platforms.
19
Spire.Presentation
Spire.Presentation for .NET is a professional PowerPoint® compatible component that enables developers to create, read, write, and modify PowerPoint® documents from any .NET(C#, VB.NET, ASP.NET) platform, NET Core 2.0. .netstand2.0. As an independent PowerPoint .NET component, Spire.Presentation for .NET doesn't need Microsoft PowerPoint installed on the machine. Spire.Presentation for .NET support PPT, PPS, PPTX and PPSX presentation formats. It provides functions such as managing text, image, shapes, tables, animations, audio and video on slides. It also support exporting presentation slides to EMF, JPG, PDF, XPS, SVG, HTML aand images etc. A powerpoint component which enables developers to to create, read, write, and modify PowerPoint documents on .NET4.0, .NET6.0, .NET7.0, NETCore,NETStandard,MonoAndroid, Xamarin.
19
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.
18
Spire.PDF
Spire.PDF for .NET is a versatile PDF library that enables software developers to generate, edit, read and manipulate PDF files within their own .NET applications. As a standalone PDF component, Spire.PDF for .NET provides users an incredible wealth of features without installing Adobe Acrobat. This component is completely written in C#, but also supports VB.NET, Windows Forms and ASP.NET. With the Spire.PDF for .NET API, you can get the ability to read PDF text and image even attachments with high efficiency. Even the special content such as language written from right to left can be extracted such as Herbrew and Arabic. Other basic features such as text, image, table, shapes, hyperlinks, bookmark, headings, footnotes, lists, form fields, pagination, booklet barcode, attachments, transparency, annotations, actions, overlay etc all work great for users. As for security, Spire.PDF for .NET enables you to protect your PDF files by passwords and digital signature. Spire.PDF now supprots to work on .NET core, MonoAndroid and Xamarin.iOS platforms.
18
Spire.Presentation
Spire.Presentation for .NET is a professional PowerPoint® compatible component that enables developers to create, read, write, and modify PowerPoint® documents from any .NET(C#, VB.NET, ASP.NET) platform, NET Core 2.0. .netstand2.0. As an independent PowerPoint .NET component, Spire.Presentation for .NET doesn't need Microsoft PowerPoint installed on the machine. Spire.Presentation for .NET support PPT, PPS, PPTX and PPSX presentation formats. It provides functions such as managing text, image, shapes, tables, animations, audio and video on slides. It also support exporting presentation slides to EMF, JPG, PDF format etc.
18
Spire.Presentation
Spire.Presentation for .NET is a professional PowerPoint® compatible component that enables developers to create, read, write, and modify PowerPoint® documents from any .NET(C#, VB.NET, ASP.NET) platform, NET Core 2.0. .netstand2.0. As an independent PowerPoint .NET component, Spire.Presentation for .NET doesn't need Microsoft PowerPoint installed on the machine. Spire.Presentation for .NET support PPT, PPS, PPTX and PPSX presentation formats. It provides functions such as managing text, image, shapes, tables, animations, audio and video on slides. It also support exporting presentation slides to EMF, JPG, PDF, XPS, SVG, HTML aand images etc.
18
EPPlus
A spreadsheet library for .NET framework and .NET core
17

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
11.0.0-preview.3.26207.106 4 2026/4/29
11.0.0-preview.2.26159.112 2 2026/4/3
11.0.0-preview.1.26104.118 8 2026/3/6
10.0.7 1 2026/4/29
10.0.6 1 2026/4/29
10.0.5 5 2026/4/3
10.0.4 5 2026/4/3
10.0.3 2 2026/3/6
10.0.2 4 2026/1/21
10.0.1 9 2025/12/18
10.0.0 6 2025/11/12
10.0.0-rc.2.25502.107 7 2025/11/4
10.0.0-rc.1.25451.107 8 2025/9/23
10.0.0-preview.7.25380.108 8 2025/9/18
10.0.0-preview.6.25358.103 9 2025/9/18
10.0.0-preview.5.25277.114 1 2025/6/11
10.0.0-preview.4.25258.110 12 2025/5/25
10.0.0-preview.3.25171.5 7 2025/5/26
10.0.0-preview.2.25163.2 8 2025/5/26
10.0.0-preview.1.25080.5 1 2025/5/26
9.0.15 1 2026/4/29
9.0.14 7 2026/4/3
9.0.13 5 2026/3/7
9.0.12 7 2026/1/21
9.0.11 6 2025/11/12
9.0.10 7 2025/10/17
9.0.9 7 2025/9/18
9.0.8 10 2025/9/17
9.0.7 10 2025/9/18
9.0.6 2 2025/6/16
9.0.5 5 2025/5/24
9.0.4 8 2025/5/26
9.0.3 1 2025/5/26
9.0.2 6 2025/5/26
9.0.1 10 2025/5/26
9.0.0 8 2025/5/26
9.0.0-rc.2.24473.5 5 2025/5/26
9.0.0-rc.1.24431.7 8 2025/5/26
9.0.0-preview.7.24405.7 19 2025/5/26
9.0.0-preview.6.24327.7 2 2025/5/27
9.0.0-preview.5.24306.7 1 2025/5/26
9.0.0-preview.4.24266.19 1 2025/5/26
9.0.0-preview.3.24172.9 7 2025/5/26
9.0.0-preview.2.24128.5 4 2025/5/27
9.0.0-preview.1.24080.9 7 2025/5/27
8.0.0 9 2025/5/26
8.0.0-rc.2.23479.6 1 2025/5/27
8.0.0-rc.1.23419.4 17 2025/5/26
8.0.0-preview.7.23375.6 9 2025/5/26
8.0.0-preview.6.23329.7 14 2025/5/26
8.0.0-preview.5.23280.8 14 2025/5/26
8.0.0-preview.4.23259.5 9 2025/5/26
8.0.0-preview.3.23174.8 7 2025/5/26
8.0.0-preview.2.23128.3 9 2025/5/26
8.0.0-preview.1.23110.8 24 2025/5/27
7.0.0 9 2025/5/26
7.0.0-rc.2.22472.3 6 2025/5/26
7.0.0-rc.1.22426.10 13 2025/5/26
7.0.0-preview.7.22375.6 14 2025/5/26
7.0.0-preview.6.22324.4 11 2025/5/26
7.0.0-preview.5.22301.12 8 2025/5/26
7.0.0-preview.4.22229.4 16 2025/5/26
7.0.0-preview.3.22175.4 16 2025/5/27
7.0.0-preview.2.22152.2 9 2025/5/26
7.0.0-preview.1.22076.8 10 2025/5/26
6.0.2-mauipre.1.22102.15 7 2025/6/13
6.0.2-mauipre.1.22054.8 10 2025/6/7
6.0.1 7 2025/5/26
6.0.0 10 2025/5/26
6.0.0-rc.2.21480.5 13 2025/5/26
6.0.0-rc.1.21451.13 15 2025/5/26
6.0.0-preview.7.21377.19 14 2025/5/26
6.0.0-preview.6.21352.12 9 2025/5/26
6.0.0-preview.5.21301.5 14 2025/5/26
6.0.0-preview.4.21253.7 16 2025/5/26
6.0.0-preview.3.21201.4 9 2025/5/26
6.0.0-preview.2.21154.6 8 2025/5/26
6.0.0-preview.1.21102.12 14 2025/5/26
5.0.0 15 2025/5/26
5.0.0-rc.2.20475.5 13 2025/5/26
5.0.0-rc.1.20451.14 17 2025/5/26
5.0.0-preview.8.20407.11 13 2025/5/26
5.0.0-preview.7.20364.11 14 2025/5/26
5.0.0-preview.6.20305.6 10 2025/5/27
5.0.0-preview.5.20278.1 14 2025/5/26
5.0.0-preview.4.20251.6 13 2025/5/26
5.0.0-preview.3.20214.6 10 2025/5/26
5.0.0-preview.2.20160.6 9 2025/5/26
5.0.0-preview.1.20120.5 13 2025/5/26
4.7.1 13 2025/5/26
4.7.0 8 2025/5/26
4.7.0-preview3.19551.4 10 2025/5/26
4.7.0-preview2.19523.17 14 2025/5/27
4.7.0-preview1.19504.10 10 2025/5/26
4.6.0 16 2025/5/25
4.6.0-rc1.19456.4 14 2025/5/26
4.6.0-preview9.19421.4 17 2025/5/24
4.6.0-preview9.19416.11 14 2025/5/26
4.6.0-preview8.19405.3 5 2025/5/26
4.6.0-preview7.19362.9 14 2025/5/26
4.6.0-preview6.19303.8 8 2025/5/26
4.6.0-preview6.19264.9 13 2025/5/26
4.6.0-preview5.19224.8 13 2025/5/26
4.6.0-preview4.19212.13 10 2025/5/27
4.6.0-preview3.19128.7 14 2025/5/26
4.6.0-preview.19073.11 9 2025/5/26
4.6.0-preview.18571.3 10 2025/5/26
4.5.1 15 2025/5/26
4.5.1-servicing-27114-05 13 2025/5/26
4.5.0 21 2025/5/26
4.5.0-rc1 16 2025/5/26
4.5.0-preview2-26406-04 9 2025/5/26
4.5.0-preview1-26216-02 9 2025/5/26
4.5.0-preview1-25914-04 12 2025/5/26
4.4.0 8 2025/5/26
4.4.0-preview2-25405-01 9 2025/5/26
4.4.0-preview1-25305-02 10 2025/5/26
4.3.0 9 2025/5/26
4.3.0-preview1-24530-04 11 2025/5/26
4.0.1 9 2025/5/26
4.0.1-rc2-24027 15 2025/5/26
4.0.1-beta-23516 18 2025/5/25
4.0.1-beta-23409 8 2025/5/24
4.0.1-beta-23225 9 2025/5/26
4.0.0 14 2025/5/26
4.0.0-beta-23109 14 2025/5/27
4.0.0-beta-23019 20 2025/5/26
4.0.0-beta-22816 25 2025/5/26
4.0.0-beta-22605 16 2025/5/26
4.0.0-beta-22416 18 2025/5/26
4.0.0-beta-22231 15 2025/5/27