System.Text.Encoding.CodePages 9.0.0

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.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
61
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
58
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
58
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
56
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
55
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.
54
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.
52
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.
52
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
52
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
51
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.
50
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluation MSBuild projects.
49
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
49
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.
49
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.
49
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
48
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
48
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.
48

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