System.Text.Encoding.CodePages 9.0.6

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
EPPlus
A spreadsheet library for .NET framework and .NET core
96
EPPlus
A spreadsheet library for .NET framework and .NET core
1,904
EPPlus
Create advanced Excel spreadsheets using .NET
94
EPPlus
Create advanced Excel spreadsheets using .NET
2,077
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
95
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
100
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET as well as .NET Standard.
111
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. 8f968b9e79c5721d78cc88e46fe57457fe9d490d When using NuGet 3.x this package requires at least version 3.4.
93
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
92
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
96
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
98
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
110
Microsoft.Windows.Compatibility
This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard. When using NuGet 3.x this package requires at least version 3.4.
111
System.Data.Odbc
Provides a collection of classes used to access an ODBC data source in the managed space Commonly Used Types: System.Data.Odbc.OdbcCommand System.Data.Odbc.OdbcConnection System.Data.Odbc.OdbcDataReader System.Data.Odbc.OdbcDataAdapter System.Data.Odbc.OdbcParameter System.Data.Odbc.OdbcParameterCollection System.Data.Odbc.OdbcTransaction
95
System.Data.Odbc
Provides a collection of classes used to access an ODBC data source in the managed space Commonly Used Types: System.Data.Odbc.OdbcCommand System.Data.Odbc.OdbcConnection System.Data.Odbc.OdbcDataReader System.Data.Odbc.OdbcDataAdapter System.Data.Odbc.OdbcParameter System.Data.Odbc.OdbcParameterCollection System.Data.Odbc.OdbcTransaction
99
System.Data.Odbc
Provides a collection of classes used to access an ODBC data source in the managed space Commonly Used Types: System.Data.Odbc.OdbcCommand System.Data.Odbc.OdbcConnection System.Data.Odbc.OdbcDataReader System.Data.Odbc.OdbcDataAdapter System.Data.Odbc.OdbcParameter System.Data.Odbc.OdbcParameterCollection System.Data.Odbc.OdbcTransaction
102
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 0f6d0a02c9cc2e766dd543ff24135f16e9a971e4 When using NuGet 3.x this package requires at least version 3.4.
95
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.
106
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.
10,371

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
10.0.0 8 11/12/2025
10.0.0-rc.2.25502.107 9 10/19/2025
10.0.0-rc.1.25451.107 9 09/16/2025
10.0.0-preview.7.25380.108 7 09/16/2025
10.0.0-preview.6.25358.103 11 09/16/2025
10.0.0-preview.5.25277.114 8 09/20/2025
10.0.0-preview.4.25258.110 19 05/19/2025
10.0.0-preview.3.25171.5 16 04/11/2025
10.0.0-preview.2.25163.2 14 03/25/2025
10.0.0-preview.1.25080.5 15 02/28/2025
9.0.11 9 11/13/2025
9.0.10 10 10/16/2025
9.0.9 8 09/16/2025
9.0.8 10 09/17/2025
9.0.7 10 09/16/2025
9.0.6 9 09/16/2025
9.0.5 12 05/19/2025
9.0.4 15 04/11/2025
9.0.3 16 03/28/2025
9.0.2 32 02/24/2025
9.0.1 19 01/23/2025
9.0.0 25 11/16/2024
9.0.0-rc.2.24473.5 27 10/14/2024
9.0.0-rc.1.24431.7 24 09/12/2024
9.0.0-preview.7.24405.7 26 08/13/2024
9.0.0-preview.6.24327.7 22 07/10/2024
9.0.0-preview.5.24306.7 23 06/20/2024
9.0.0-preview.4.24266.19 40 05/23/2024
9.0.0-preview.3.24172.9 28 04/16/2024
9.0.0-preview.2.24128.5 31 03/14/2024
9.0.0-preview.1.24080.9 38 02/26/2024
8.0.0 38 11/16/2023
8.0.0-rc.2.23479.6 34 10/12/2023
8.0.0-rc.1.23419.4 49 09/16/2023
8.0.0-preview.7.23375.6 75 09/05/2023
8.0.0-preview.6.23329.7 71 07/15/2023
8.0.0-preview.5.23280.8 33 06/18/2023
8.0.0-preview.4.23259.5 46 05/30/2023
8.0.0-preview.3.23174.8 51 04/15/2023
8.0.0-preview.2.23128.3 79 03/29/2023
8.0.0-preview.1.23110.8 56 02/26/2023
7.0.0 61 12/15/2022
7.0.0-rc.2.22472.3 100 10/24/2022
7.0.0-rc.1.22426.10 129 12/16/2022
7.0.0-preview.7.22375.6 66 09/21/2022
7.0.0-preview.6.22324.4 117 09/21/2022
7.0.0-preview.5.22301.12 118 08/12/2022
7.0.0-preview.4.22229.4 100 09/21/2022
7.0.0-preview.3.22175.4 55 09/21/2022
7.0.0-preview.2.22152.2 130 09/21/2022
7.0.0-preview.1.22076.8 121 08/11/2022
6.0.2-mauipre.1.22102.15 66 09/21/2022
6.0.2-mauipre.1.22054.8 117 09/21/2022
6.0.1 23 11/16/2024
6.0.0 141 09/21/2022
6.0.0-rc.2.21480.5 141 09/21/2022
6.0.0-rc.1.21451.13 118 08/11/2022
6.0.0-preview.7.21377.19 137 09/21/2022
6.0.0-preview.6.21352.12 73 09/21/2022
6.0.0-preview.5.21301.5 73 09/21/2022
6.0.0-preview.4.21253.7 64 09/21/2022
6.0.0-preview.3.21201.4 72 09/21/2022
6.0.0-preview.2.21154.6 68 09/21/2022
6.0.0-preview.1.21102.12 132 09/21/2022
5.0.0 1,969 09/21/2022
5.0.0-rc.2.20475.5 88 08/11/2022
5.0.0-rc.1.20451.14 82 09/21/2022
5.0.0-preview.8.20407.11 65 09/21/2022
5.0.0-preview.7.20364.11 154 08/11/2022
5.0.0-preview.6.20305.6 111 09/21/2022
5.0.0-preview.5.20278.1 47 08/11/2022
5.0.0-preview.4.20251.6 104 09/21/2022
5.0.0-preview.3.20214.6 105 09/21/2022
5.0.0-preview.2.20160.6 74 09/21/2022
5.0.0-preview.1.20120.5 108 09/21/2022
4.7.1 101 09/21/2022
4.7.0 2,107 06/27/2022
4.7.0-preview3.19551.4 75 09/21/2022
4.7.0-preview2.19523.17 107 09/21/2022
4.7.0-preview1.19504.10 119 09/21/2022
4.6.0 81 07/17/2022
4.6.0-rc1.19456.4 108 09/21/2022
4.6.0-preview9.19421.4 70 09/21/2022
4.6.0-preview9.19416.11 93 09/21/2022
4.6.0-preview8.19405.3 50 09/21/2022
4.6.0-preview7.19362.9 50 08/11/2022
4.6.0-preview6.19303.8 62 08/11/2022
4.6.0-preview6.19264.9 94 09/21/2022
4.6.0-preview5.19224.8 57 09/21/2022
4.6.0-preview4.19212.13 62 09/21/2022
4.6.0-preview3.19128.7 36 09/21/2022
4.6.0-preview.19073.11 97 09/21/2022
4.6.0-preview.18571.3 66 09/21/2022
4.5.1 84 09/21/2022
4.5.1-servicing-27114-05 73 08/11/2022
4.5.0 140 09/21/2022
4.5.0-rc1 79 09/21/2022
4.5.0-preview2-26406-04 97 09/21/2022
4.5.0-preview1-26216-02 98 09/21/2022
4.5.0-preview1-25914-04 141 09/21/2022
4.4.0 44 08/11/2022
4.4.0-preview2-25405-01 74 09/21/2022
4.4.0-preview1-25305-02 43 09/21/2022
4.3.0 113 09/21/2022
4.3.0-preview1-24530-04 59 08/11/2022
4.0.1 50 09/21/2022
4.0.1-rc2-24027 67 08/11/2022
4.0.1-beta-23516 61 09/21/2022
4.0.1-beta-23409 70 09/12/2022
4.0.1-beta-23225 62 09/21/2022
4.0.0 110 09/21/2022
4.0.0-beta-23109 130 09/21/2022
4.0.0-beta-23019 93 08/11/2022
4.0.0-beta-22816 69 09/21/2022
4.0.0-beta-22605 58 09/21/2022
4.0.0-beta-22416 125 09/21/2022
4.0.0-beta-22231 135 09/21/2022