System.Text.Encoding.CodePages 9.0.0-preview.3.24172.9

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.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.
37
System.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: System.Data.SqlClient.SqlConnection System.Data.SqlClient.SqlException System.Data.SqlClient.SqlParameter System.Data.SqlDbType System.Data.SqlClient.SqlDataReader System.Data.SqlClient.SqlCommand System.Data.SqlClient.SqlTransaction System.Data.SqlClient.SqlParameterCollection System.Data.SqlClient.SqlClientFactory When using NuGet 3.x this package requires at least version 3.4.
37
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/34fad56309fc96f2af1171df6ea012cbf991c27d.
37
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
35
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.
34
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
34
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.
33
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.
33
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
33
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
32
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.
31
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
31
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
31
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore. 09dd6cf2fe48d7e23628671deb819105218171c9 When using NuGet 3.x this package requires at least version 3.4.
30

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