System.Text.Encoding.CodePages 9.0.1

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.CSharp.Features
.NET Compiler Platform ("Roslyn") support for creating C# editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/be9c072e1c8a9e6701e34d796b1d68098d08feab.
1
Microsoft.CodeAnalysis.Features
.NET Compiler Platform ("Roslyn") support for creating editing experiences. More details at https://aka.ms/roslyn-packages This package was built from the source at https://github.com/dotnet/roslyn/commit/be9c072e1c8a9e6701e34d796b1d68098d08feab.
1
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
1
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When running on Windows, this library has a dependency on Microsoft.Data.SqlClient.SNI on .NET Framework and runtime.native.System.Data.SqlClient.sni on .NET Core, which requires the Microsoft Visual C++ Redistributable to be installed: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads When using NuGet 3.x this package requires at least version 3.4.
1
Microsoft.Data.SqlClient
Provides the data provider for SQL Server. These classes provide access to versions of SQL Server and encapsulate database-specific protocols, including tabular data stream (TDS) Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
1
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
1
Microsoft.Data.SqlClient
The current data provider for SQL Server and Azure SQL databases. This has replaced System.Data.SqlClient. These classes provide access to SQL and encapsulate database-specific protocols, including tabular data stream (TDS). Commonly Used Types: Microsoft.Data.SqlClient.SqlConnection Microsoft.Data.SqlClient.SqlException Microsoft.Data.SqlClient.SqlParameter Microsoft.Data.SqlClient.SqlDataReader Microsoft.Data.SqlClient.SqlCommand Microsoft.Data.SqlClient.SqlTransaction Microsoft.Data.SqlClient.SqlParameterCollection Microsoft.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
1

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
9.0.1 1 1/18/2025
9.0.0 1 11/14/2024
9.0.0-rc.2.24473.5 1 11/14/2024
9.0.0-rc.1.24431.7 0 9/10/2024
9.0.0-preview.7.24405.7 0 8/13/2024
9.0.0-preview.6.24327.7 0 7/9/2024
9.0.0-preview.5.24306.7 0 6/11/2024
9.0.0-preview.4.24266.19 1 11/13/2024
9.0.0-preview.3.24172.9 0 4/11/2024
9.0.0-preview.2.24128.5 1 11/10/2024
9.0.0-preview.1.24080.9 0 2/13/2024
8.0.0 0 11/14/2023
8.0.0-rc.2.23479.6 1 11/10/2024
8.0.0-rc.1.23419.4 0 9/12/2023
8.0.0-preview.7.23375.6 0 8/8/2023
8.0.0-preview.6.23329.7 0 7/11/2023
8.0.0-preview.5.23280.8 1 11/13/2024
8.0.0-preview.4.23259.5 0 5/16/2023
8.0.0-preview.3.23174.8 0 4/11/2023
8.0.0-preview.2.23128.3 0 3/14/2023
8.0.0-preview.1.23110.8 1 11/10/2024
7.0.0 1 11/10/2024
7.0.0-rc.2.22472.3 0 10/11/2022
7.0.0-rc.1.22426.10 0 9/14/2022
7.0.0-preview.7.22375.6 1 11/13/2024
7.0.0-preview.6.22324.4 0 7/12/2022
7.0.0-preview.5.22301.12 0 6/14/2022
7.0.0-preview.4.22229.4 1 11/13/2024
7.0.0-preview.3.22175.4 0 4/13/2022
7.0.0-preview.2.22152.2 1 11/13/2024
7.0.0-preview.1.22076.8 0 2/17/2022
6.0.1 1 11/14/2024
6.0.0 1 11/13/2024
6.0.0-rc.2.21480.5 0 10/12/2021
6.0.0-rc.1.21451.13 1 11/13/2024
6.0.0-preview.7.21377.19 1 11/10/2024
6.0.0-preview.6.21352.12 0 7/14/2021
6.0.0-preview.5.21301.5 0 6/15/2021
6.0.0-preview.4.21253.7 1 11/13/2024
6.0.0-preview.3.21201.4 1 11/10/2024
6.0.0-preview.2.21154.6 0 3/11/2021
6.0.0-preview.1.21102.12 1 11/10/2024
5.0.0 0 11/9/2020
5.0.0-rc.2.20475.5 0 10/13/2020
5.0.0-rc.1.20451.14 1 11/10/2024
5.0.0-preview.8.20407.11 0 8/25/2020
5.0.0-preview.7.20364.11 0 7/21/2020
5.0.0-preview.6.20305.6 0 6/25/2020
5.0.0-preview.5.20278.1 1 11/10/2024
5.0.0-preview.4.20251.6 1 11/13/2024
5.0.0-preview.3.20214.6 0 4/23/2020
5.0.0-preview.2.20160.6 0 4/2/2020
5.0.0-preview.1.20120.5 1 11/10/2024
4.7.1 1 11/13/2024
4.7.0 0 12/3/2019
4.7.0-preview3.19551.4 0 11/13/2019
4.7.0-preview2.19523.17 1 11/13/2024
4.7.0-preview1.19504.10 0 10/15/2019
4.6.0 0 9/23/2019
4.6.0-rc1.19456.4 1 11/13/2024
4.6.0-preview9.19421.4 1 11/10/2024
4.6.0-preview9.19416.11 1 11/13/2024
4.6.0-preview8.19405.3 1 11/10/2024
4.6.0-preview7.19362.9 0 7/23/2019
4.6.0-preview6.19303.8 1 11/13/2024
4.6.0-preview6.19264.9 1 11/10/2024
4.6.0-preview5.19224.8 1 11/10/2024
4.6.0-preview4.19212.13 1 11/10/2024
4.6.0-preview3.19128.7 1 11/13/2024
4.6.0-preview.19073.11 1 11/13/2024
4.6.0-preview.18571.3 0 12/3/2018
4.5.1 0 1/8/2019
4.5.1-servicing-27114-05 0 11/28/2018
4.5.0 0 5/29/2018
4.5.0-rc1 0 5/6/2018
4.5.0-preview2-26406-04 0 4/10/2018
4.5.0-preview1-26216-02 0 2/26/2018
4.5.0-preview1-25914-04 0 11/15/2017
4.4.0 0 8/11/2017
4.4.0-preview2-25405-01 1 11/13/2024
4.4.0-preview1-25305-02 0 5/9/2017
4.3.0 1 11/13/2024
4.3.0-preview1-24530-04 0 10/24/2016
4.0.1 0 6/27/2016
4.0.1-rc2-24027 0 5/16/2016
4.0.1-beta-23516 1 11/13/2024
4.0.1-beta-23409 1 11/13/2024
4.0.1-beta-23225 1 11/10/2024
4.0.0 1 11/13/2024
4.0.0-beta-23109 1 11/13/2024
4.0.0-beta-23019 1 11/10/2024
4.0.0-beta-22816 0 4/24/2015
4.0.0-beta-22605 0 2/13/2015
4.0.0-beta-22416 0 1/16/2015
4.0.0-beta-22231 1 11/10/2024