System.Text.Encoding.CodePages 11.0.0-rc.1.26425.128

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.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore. d67bd83a075b8b10cb95810568073c1a3211f28b When using NuGet 3.x this package requires at least version 3.4.
11
itext
iText represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high- and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow. iText allows you to build custom PDF scenarios for web, mobile, desktop or cloud apps in .NET.
10
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
10
Aspose.Words
Aspose.Words for .NET is a powerful, high-performance document processing library for creating, editing, converting, and rendering Word and PDF files in C#. It supports DOCX, DOC, RTF, ODT, HTML, PDF, Markdown, and over 30 formats. Designed for .NET developers, it enables advanced document automation, mail merge, text extraction, and report generation. Aspose.Words ensures high fidelity in document conversion, seamless API integration, and cross-platform compatibility. Ideal for cloud, web, and desktop applications.
10
EPPlus
A spreadsheet library for .NET framework and .NET core
9
Aspose.Words
Aspose.Words for .NET is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation. Users can perform a wide variety of document tasks, ranging from simply converting documents from one supported format to another and modifying these documents during the conversion process, to business-oriented tasks, such as creating structured and visually appealing documents or automating reporting with complex templates and data-bound fields.
9
MailKit
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices. Features include: * SASL Authentication via SCRAM-SHA-256, SCRAM-SHA-1, NTLM, DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN, and XOAUTH2. * A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8. * A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG. * A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ESORT, METADATA, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE, CREATE-SPECIAL-USE, MOVE, SEARCH=FUZZY, UTF8=ACCEPT, UTF8=ONLY, LITERAL-, APPENDLIMIT, XLIST, and X-GM-EXT1. * Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported). * Asynchronous versions of all methods that hit the network. * S/MIME, OpenPGP and DKIM signature support via MimeKit. * Microsoft TNEF support via MimeKit.
9
Aspose.Words
Aspose.Words for .NET is a cross-platform class library that enables your applications to perform a great range of document processing tasks. With Aspose.Words you can load, save and convert documents between the following formats: DOC, DOT, DOCX, DOCM, DOTX, DOTM, XML (including Word 2003 XML), RTF, HTML, MHTML, MOBI, ODT, OTT, TXT – also you can convert them to: PDF, XPS, SVG, EPUB, XAML, PS, PCL, TIFF, BMP, PNG, EMF, JPEG, GIF and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®. Aspose.Words for .NET is well documented to help you create your solutions on different platforms. Rich Set of Features Aspose.Words for .NET features can be divided into four main areas: - Conversions: High quality conversions to and from DOC, OOXML, RTF, WordprocessingML, HTML, MHTML, TXT and OpenDocument formats - Document Object Model: Programmatic access through a rich API to all document elements and formatting allows to create, modify, extract, copy, split, join, and replace document content - Rendering: Convert whole documents or pages to PDF, XPS or for server-side document generation. Also convert document pages to TIFF, PNG, BMP or EMF images, print or render pages to .NET Graphics. All with high fidelity - exactly like Microsoft Word® would have done it. - Reporting: Generate documents or reports from scratch or by filling templates with data from data sources or business objects. Platform Independence You can use Aspose.Words for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, UWP, .NET Standard, .NET Core etc. It is possible to use Aspose.Words for .NET via COM Interop from ASP, Perl, PHP and Python. You can also use Aspose.Words for .NET to build applications with Mono. Performance and Scalability Aspose.Words is designed to perform great both on a server or client. Aspose.Words is a single .NET assembly that can be deployed with any .NET application by simply copying it. You do not have to worry about any other services or modules. You can literally generate thousands of documents in minutes with Aspose.Words and that involves opening a document, modifying content and formatting or populating it with data and saving it. Even most of the complex documents are opened and saved on a P4 2.4Ghz 1Gb RAM machine in fractions of a second. Aspose.Words is multithread safe as long as only one thread works on a document at a time. It is a typical scenario to have one thread working on one document. Different threads can safely work on different documents at the same time. Free support for Aspose.Words for .NET is provided on our support forum: https://forum.aspose.com/ and on StackOverflow: https://stackoverflow.com/questions/tagged/aspose.words
9
Aspose.Words
Aspose.Words for .NET is a cross-platform document processing library that allows developers to work with a variety of Microsoft Word, OpenOffice, Web, PDF, and image file formats. .NET developers can easily create, open, read, render, edit, convert, merge, split, compare documents. Almost all mainstream document formats are supported, including DOCX, DOC, RTF, ODT, PDF, Markdown, HTML, XML, XAML, MOBI, PNG, JPG. We also provide powerful features to generate reports from document templates and data sources.
9
itext
iText represents the next level of SDKs for developers that want to take advantage of the benefits PDF can bring. Equipped with a better document engine, high- and low-level programming capabilities and the ability to create, edit and enhance PDF documents, iText can be a boon to nearly every workflow. iText allows you to build custom PDF scenarios for web, mobile, desktop or cloud apps in .NET.
9
MailKit
MailKit is an Open Source cross-platform .NET mail-client library that is based on MimeKit and optimized for mobile devices. Features include: * SASL Authentication via SCRAM-SHA-256, SCRAM-SHA-1, NTLM, DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN, and XOAUTH2. * A fully-cancellable SmtpClient with support for STARTTLS, 8BITMIME, BINARYMIME, ENHANCEDSTATUSCODES, SIZE, DSN, PIPELINING and SMTPUTF8. * A fully-cancellable Pop3Client with support for STLS, UIDL, APOP, PIPELINING, UTF8, and LANG. * A fully-cancellable ImapClient with support for ACL, QUOTA, LITERAL+, IDLE, NAMESPACE, ID, CHILDREN, LOGINDISABLED, STARTTLS, MULTIAPPEND, UNSELECT, UIDPLUS, CONDSTORE, ESEARCH, SASL-IR, COMPRESS, WITHIN, ENABLE, QRESYNC, SORT, THREAD, ESORT, METADATA, FILTERS, LIST-STATUS, SORT=DISPLAY, SPECIAL-USE, CREATE-SPECIAL-USE, MOVE, SEARCH=FUZZY, UTF8=ACCEPT, UTF8=ONLY, LITERAL-, APPENDLIMIT, XLIST, and X-GM-EXT1. * Client-side sorting and threading of messages (the Ordinal Subject and the Jamie Zawinski threading algorithms are supported). * Asynchronous versions of all methods that hit the network. * S/MIME, OpenPGP and DKIM signature support via MimeKit. * Microsoft TNEF support via MimeKit.
8
Aspose.Words
Aspose.Words for .NET is a Document Processing library that allows developers to work with documents in many popular formats without needing Office Automation. Users can perform a wide variety of document tasks, ranging from simply converting documents from one supported format to another and modifying these documents during the conversion process, to business-oriented tasks, such as creating structured and visually appealing documents or automating reporting with complex templates and data-bound fields.
8
Aspose.Words
Aspose.Words for .NET is a cross-platform class library that enables your applications to perform a great range of document processing tasks. With Aspose.Words you can load, save and convert documents between the following formats: DOC, DOT, DOCX, DOCM, DOTX, DOTM, XML (including Word 2003 XML), RTF, HTML, MHTML, MOBI, ODT, OTT, TXT – also you can convert them to: PDF, XPS, SVG, EPUB, XAML, PS, PCL, TIFF, BMP, PNG, EMF, JPEG, GIF and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®. Aspose.Words for .NET is well documented to help you create your solutions on different platforms. Rich Set of Features Aspose.Words for .NET features can be divided into four main areas: - Conversions: High quality conversions to and from DOC, OOXML, RTF, WordprocessingML, HTML, MHTML, TXT and OpenDocument formats - Document Object Model: Programmatic access through a rich API to all document elements and formatting allows to create, modify, extract, copy, split, join, and replace document content - Rendering: Convert whole documents or pages to PDF, XPS or for server-side document generation. Also convert document pages to TIFF, PNG, BMP or EMF images, print or render pages to .NET Graphics. All with high fidelity - exactly like Microsoft Word® would have done it. - Reporting: Generate documents or reports from scratch or by filling templates with data from data sources or business objects. Platform Independence You can use Aspose.Words for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, UWP, .NET Standard, .NET Core etc. It is possible to use Aspose.Words for .NET via COM Interop from ASP, Perl, PHP and Python. You can also use Aspose.Words for .NET to build applications with Mono. Performance and Scalability Aspose.Words is designed to perform great both on a server or client. Aspose.Words is a single .NET assembly that can be deployed with any .NET application by simply copying it. You do not have to worry about any other services or modules. You can literally generate thousands of documents in minutes with Aspose.Words and that involves opening a document, modifying content and formatting or populating it with data and saving it. Even most of the complex documents are opened and saved on a P4 2.4Ghz 1Gb RAM machine in fractions of a second. Aspose.Words is multithread safe as long as only one thread works on a document at a time. It is a typical scenario to have one thread working on one document. Different threads can safely work on different documents at the same time. Aspose.Words Documentation https://docs.aspose.com/display/wordsnet/Home Free support for Aspose.Words for .NET is provided on our support forum: https://forum.aspose.com/ and on StackOverflow: https://stackoverflow.com/questions/tagged/aspose.words
8
Aspose.Cells
Aspose.Cells for .NET is a spreadsheet programming library that allows software developers to manipulate and convert spreadsheet files from within their own applications. A combination of APIs and GUI controls, Aspose.Cells for .NET speeds up Microsoft Excel programming and conversion. Aspose.Cells for .NET supports the popular spreadsheet (XLS, XLSX, XLSM, XLSB, XLTX, XLTM, CSV, TSV, SpreadsheetML, ODS) file formats your business use every day. It also allows exporting Excel files to PDF, XPS, HTML, MHTML, Plain Text and popular image formats including TIFF, JPG, PNG, BMP and SVG. Aspose.Cells for .NET is well documented to help you create your solutions on different platforms. Advanced Excel Spreadsheet Features Aspose.Cells for .NET not only supports spreadsheet generation and other basic file formatting features, it also supports a number of advanced features: - File Formats and Conversions: High quality conversions to and from XLS, XLSX, SpreadsheetML, CSV, HTML, TXT, Tab delimited and OpenDocument Spreadsheet formats. - Rendering and Printing: Convert whole workbook or pages in the worksheets to PDF, XPS. Also convert document pages to TIFF, PNG, JPEG, BMP or EMF images. All with high fidelity - exactly like Microsoft Excel®. - Spreadsheet Features: A rich object model which allows you to programmatically generate, combine, modify, format, protect, parse or otherwise examine loaded spreadsheets. - PageSetup Features: Implement PageSetup options for your worksheets with ease. - Extended Excel Graphics Capabilities: Create and manipulate charts, add customized charts using the product API and dynamically set data for charts. It also supports to convert charts to images. Platform Independence You can use Aspose.Cells for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, UWP, .NET Standard, .NET Core etc. It is possible to use Aspose.Cells for .NET via COM Interop from ASP, Perl, PHP and Python. You can also use Aspose.Cells for .NET to build applications with Mono. Performance and Scalability Aspose.Cells is a single .NET assembly that can be deployed with any .NET application by simply copying it. You do not have to worry about any other services or modules. You can generate thousands of spreadsheets in quick time that involves opening a workbook, modifying content and formatting or populating it with data and saving it. Microsoft Office Automation – Not Needed Aspose.Cells for .NET APIs are built using managed code that do never need Microsoft Office or Microsoft Excel to be installed on the machine to work with Excel document formats. It is a perfect Microsoft Office automation alternative in terms of supported features, security, stability, scalability, speed and price. Aspose.Cells Grid Suite Aspose.Cells for .NET also provides independent .NET GUI controls for desktop and web applications: - Desktop Control for Windows Forms Applications - Web Control for ASP.NET Web Forms Applications (Apply formatting and formulae, import and export (DataTable, DataView), open, save and edit MS Excel files using the controls) Free support for Aspose.Cells for .NET is provided on our support forum: https://forum.aspose.com/ and on StackOverflow: https://stackoverflow.com/questions/tagged/aspose
8
Aspose.Cells
A powerful and fast library written in C# for manipulating and converting Excel(XLS, XLSX,XLSB), ODS, CSV,JSON and HTML files.
8
Aspose.Words
Aspose.Words for .NET is a cross-platform document processing library that allows developers to work with a variety of Microsoft Word, OpenOffice, Web, PDF, and image file formats. .NET developers can easily create, open, read, render, edit, convert, merge, split, compare documents. Almost all mainstream document formats are supported, including DOCX, DOC, RTF, ODT, PDF, Markdown, HTML, XML, XAML, MOBI, PNG, JPG. We also provide powerful features to generate reports from document templates and data sources.
8

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

.NET 10.0

  • No dependencies.

.NET 11.0

  • No dependencies.

.NET Framework 4.6.2

.NET Standard 2.0

Version Downloads Last updated
11.0.0-rc.1.26425.128 8 09/13/2026
11.0.0-preview.7.26381.103 6 09/13/2026
11.0.0-preview.6.26359.118 6 09/13/2026
11.0.0-preview.5.26302.115 6 09/13/2026
11.0.0-preview.4.26230.115 6 09/13/2026
11.0.0-preview.3.26207.106 7 09/13/2026
11.0.0-preview.2.26159.112 7 09/13/2026
11.0.0-preview.1.26104.118 7 09/13/2026
10.0.12 7 09/13/2026
10.0.11 6 09/13/2026
10.0.10 7 09/13/2026
10.0.9 7 09/13/2026
10.0.8 9 09/13/2026
10.0.7 5 09/13/2026
10.0.6 6 09/13/2026
10.0.5 8 09/13/2026
10.0.4 6 09/13/2026
10.0.3 7 09/13/2026
10.0.2 6 09/13/2026
10.0.1 6 09/13/2026
10.0.0 6 09/13/2026
10.0.0-rc.2.25502.107 7 09/13/2026
10.0.0-rc.1.25451.107 5 09/13/2026
10.0.0-preview.7.25380.108 6 09/13/2026
10.0.0-preview.6.25358.103 5 09/13/2026
10.0.0-preview.5.25277.114 5 09/13/2026
10.0.0-preview.4.25258.110 4 09/13/2026
10.0.0-preview.3.25171.5 6 09/13/2026
10.0.0-preview.2.25163.2 5 09/13/2026
10.0.0-preview.1.25080.5 8 09/13/2026
9.0.20 8 09/13/2026
9.0.19 7 09/13/2026
9.0.18 7 09/13/2026
9.0.17 7 09/13/2026
9.0.16 8 09/13/2026
9.0.15 9 09/13/2026
9.0.14 6 09/13/2026
9.0.13 7 09/13/2026
9.0.12 6 09/13/2026
9.0.11 8 09/13/2026
9.0.10 8 09/13/2026
9.0.9 9 09/13/2026
9.0.8 8 09/13/2026
9.0.7 6 09/13/2026
9.0.6 8 09/13/2026
9.0.5 6 09/13/2026
9.0.4 9 09/13/2026
9.0.3 6 09/13/2026
9.0.2 7 09/13/2026
9.0.1 8 09/13/2026
9.0.0 8 09/13/2026
9.0.0-rc.2.24473.5 6 09/13/2026
9.0.0-rc.1.24431.7 7 09/13/2026
9.0.0-preview.7.24405.7 6 09/13/2026
9.0.0-preview.6.24327.7 6 09/13/2026
9.0.0-preview.5.24306.7 6 09/13/2026
9.0.0-preview.4.24266.19 6 09/13/2026
9.0.0-preview.3.24172.9 6 09/13/2026
9.0.0-preview.2.24128.5 6 09/13/2026
9.0.0-preview.1.24080.9 6 09/13/2026
8.0.0 8 09/13/2026
8.0.0-rc.2.23479.6 6 09/13/2026
8.0.0-rc.1.23419.4 7 09/13/2026
8.0.0-preview.7.23375.6 6 09/13/2026
8.0.0-preview.6.23329.7 8 09/13/2026
8.0.0-preview.5.23280.8 6 09/13/2026
8.0.0-preview.4.23259.5 7 09/13/2026
8.0.0-preview.3.23174.8 5 09/13/2026
8.0.0-preview.2.23128.3 7 09/13/2026
8.0.0-preview.1.23110.8 5 09/13/2026
7.0.0 8 09/13/2026
7.0.0-rc.2.22472.3 4 09/13/2026
7.0.0-rc.1.22426.10 8 09/13/2026
7.0.0-preview.7.22375.6 6 09/13/2026
7.0.0-preview.6.22324.4 7 09/13/2026
7.0.0-preview.5.22301.12 6 09/13/2026
7.0.0-preview.4.22229.4 7 09/13/2026
7.0.0-preview.3.22175.4 5 09/13/2026
7.0.0-preview.2.22152.2 7 09/13/2026
7.0.0-preview.1.22076.8 6 09/13/2026
6.0.1 6 09/13/2026
6.0.0 7 09/13/2026
6.0.0-rc.2.21480.5 6 09/13/2026
6.0.0-rc.1.21451.13 6 09/13/2026
6.0.0-preview.7.21377.19 6 09/13/2026
6.0.0-preview.6.21352.12 6 09/13/2026
6.0.0-preview.5.21301.5 5 09/13/2026
6.0.0-preview.4.21253.7 7 09/13/2026
6.0.0-preview.3.21201.4 6 09/13/2026
6.0.0-preview.2.21154.6 7 09/13/2026
6.0.0-preview.1.21102.12 7 09/13/2026
5.0.0 8 09/13/2026
5.0.0-rc.2.20475.5 7 09/13/2026
5.0.0-rc.1.20451.14 6 09/13/2026
5.0.0-preview.8.20407.11 5 09/13/2026
5.0.0-preview.7.20364.11 8 09/13/2026
5.0.0-preview.6.20305.6 5 09/13/2026
5.0.0-preview.5.20278.1 8 09/13/2026
5.0.0-preview.4.20251.6 7 09/13/2026
5.0.0-preview.3.20214.6 7 09/13/2026
5.0.0-preview.2.20160.6 7 09/13/2026
5.0.0-preview.1.20120.5 7 09/13/2026
4.7.1 7 09/13/2026
4.7.0 7 09/13/2026
4.7.0-preview3.19551.4 7 09/13/2026
4.7.0-preview2.19523.17 7 09/13/2026
4.7.0-preview1.19504.10 7 09/13/2026
4.6.0 6 09/13/2026
4.6.0-rc1.19456.4 8 09/13/2026
4.6.0-preview9.19421.4 6 09/13/2026
4.6.0-preview9.19416.11 6 09/13/2026
4.6.0-preview8.19405.3 7 09/13/2026
4.6.0-preview7.19362.9 5 09/13/2026
4.6.0-preview6.19303.8 6 09/13/2026
4.6.0-preview6.19264.9 8 09/13/2026
4.6.0-preview5.19224.8 6 09/13/2026
4.6.0-preview4.19212.13 7 09/13/2026
4.6.0-preview3.19128.7 7 09/13/2026
4.6.0-preview.19073.11 7 09/13/2026
4.6.0-preview.18571.3 6 09/13/2026
4.5.1 7 09/13/2026
4.5.1-servicing-27114-05 7 09/13/2026
4.5.0 6 09/13/2026
4.5.0-rc1 6 09/13/2026
4.5.0-preview2-26406-04 7 09/13/2026
4.5.0-preview1-26216-02 7 09/13/2026
4.5.0-preview1-25914-04 6 09/13/2026
4.4.0 7 09/13/2026
4.4.0-preview2-25405-01 6 09/13/2026
4.4.0-preview1-25305-02 7 09/13/2026
4.3.0 7 09/13/2026
4.3.0-preview1-24530-04 6 09/13/2026
4.0.1 5 09/13/2026
4.0.1-rc2-24027 7 09/13/2026
4.0.1-beta-23516 6 09/13/2026
4.0.1-beta-23409 6 09/13/2026
4.0.1-beta-23225 7 09/13/2026
4.0.0 9 09/13/2026
4.0.0-beta-23109 7 09/13/2026
4.0.0-beta-23019 6 09/13/2026
4.0.0-beta-22816 8 09/13/2026
4.0.0-beta-22605 6 09/13/2026
4.0.0-beta-22416 7 09/13/2026
4.0.0-beta-22231 6 09/13/2026