System.Text.Encoding.CodePages 9.0.2

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.
86
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
83
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
79
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
78
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
72
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
69
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluation MSBuild projects.
68
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
68
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
68
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NET. 5.2.4 contains .NET Native 1.4 plus the following fix: - Updated the WCF packages which contain bug fixes. When using Visual Studio this package requires Visual Studio 2015 Update 3 or later. When using NuGet 3.x this package requires at least version 3.4.
68
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
67
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
66
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
66
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.
64
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
64
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.
64
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
64

.NET Framework 4.6.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET Standard 2.0

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