System.Text.Encoding.CodePages 10.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.
138
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
136
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.
126
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
124
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
123
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
121
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
120
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
119
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
119
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluation MSBuild projects.
118
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
117
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
116
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
115
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
114
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
114
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
113

.NET Framework 4.6.2

.NET 8.0

  • No dependencies.

.NET 9.0

  • No dependencies.

.NET 10.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
10.0.0 6 11/12/2025
10.0.0-rc.2.25502.107 20 10/15/2025
10.0.0-rc.1.25451.107 29 9/14/2025
10.0.0-preview.7.25380.108 40 8/12/2025
10.0.0-preview.6.25358.103 42 7/19/2025
10.0.0-preview.5.25277.114 33 6/8/2025
10.0.0-preview.4.25258.110 41 5/16/2025
10.0.0-preview.3.25171.5 41 4/11/2025
10.0.0-preview.2.25163.2 57 3/23/2025
10.0.0-preview.1.25080.5 56 2/27/2025
9.0.11 5 11/12/2025
9.0.10 11 10/15/2025
9.0.9 27 9/15/2025
9.0.8 30 8/5/2025
9.0.7 42 7/11/2025
9.0.6 42 6/15/2025
9.0.5 48 5/17/2025
9.0.4 56 4/9/2025
9.0.3 54 3/14/2025
9.0.2 70 2/14/2025
9.0.1 60 1/17/2025
9.0.0 65 11/18/2024
9.0.0-rc.2.24473.5 65 10/13/2024
9.0.0-rc.1.24431.7 64 9/11/2024
9.0.0-preview.7.24405.7 79 8/13/2024
9.0.0-preview.6.24327.7 73 7/10/2024
9.0.0-preview.5.24306.7 78 6/14/2024
9.0.0-preview.4.24266.19 72 6/4/2024
9.0.0-preview.3.24172.9 75 4/18/2024
9.0.0-preview.2.24128.5 76 3/27/2024
9.0.0-preview.1.24080.9 73 2/21/2024
8.0.0 82 11/15/2023
8.0.0-rc.2.23479.6 90 10/16/2023
8.0.0-rc.1.23419.4 94 9/15/2023
8.0.0-preview.7.23375.6 78 8/23/2023
8.0.0-preview.6.23329.7 79 7/31/2023
8.0.0-preview.5.23280.8 94 8/1/2023
8.0.0-preview.4.23259.5 77 8/1/2023
8.0.0-preview.3.23174.8 88 5/12/2023
8.0.0-preview.2.23128.3 88 5/6/2023
8.0.0-preview.1.23110.8 94 2/23/2023
7.0.0 85 12/3/2022
7.0.0-rc.2.22472.3 104 12/3/2022
7.0.0-rc.1.22426.10 103 9/15/2022
7.0.0-preview.7.22375.6 102 9/14/2022
7.0.0-preview.6.22324.4 96 8/12/2022
7.0.0-preview.5.22301.12 92 6/27/2022
7.0.0-preview.4.22229.4 106 6/27/2022
7.0.0-preview.3.22175.4 101 6/27/2022
7.0.0-preview.2.22152.2 83 6/27/2022
7.0.0-preview.1.22076.8 84 6/27/2022
6.0.2-mauipre.1.22102.15 92 6/27/2022
6.0.2-mauipre.1.22054.8 92 6/27/2022
6.0.1 62 11/18/2024
6.0.0 108 6/27/2022
6.0.0-rc.2.21480.5 81 6/27/2022
6.0.0-rc.1.21451.13 90 6/27/2022
6.0.0-preview.7.21377.19 95 6/27/2022
6.0.0-preview.6.21352.12 96 6/27/2022
6.0.0-preview.5.21301.5 99 6/27/2022
6.0.0-preview.4.21253.7 104 6/27/2022
6.0.0-preview.3.21201.4 99 6/27/2022
6.0.0-preview.2.21154.6 85 6/27/2022
6.0.0-preview.1.21102.12 85 6/27/2022
5.0.0 90 6/27/2022
5.0.0-rc.2.20475.5 96 6/27/2022
5.0.0-rc.1.20451.14 104 6/27/2022
5.0.0-preview.8.20407.11 103 6/27/2022
5.0.0-preview.7.20364.11 80 6/27/2022
5.0.0-preview.6.20305.6 94 6/27/2022
5.0.0-preview.5.20278.1 92 6/27/2022
5.0.0-preview.4.20251.6 114 6/27/2022
5.0.0-preview.3.20214.6 108 6/27/2022
5.0.0-preview.2.20160.6 84 6/27/2022
5.0.0-preview.1.20120.5 84 6/27/2022
4.7.1 98 6/27/2022
4.7.0 80 6/27/2022
4.7.0-preview3.19551.4 88 6/27/2022
4.7.0-preview2.19523.17 99 6/27/2022
4.7.0-preview1.19504.10 91 6/27/2022
4.6.0 97 6/27/2022
4.6.0-rc1.19456.4 95 6/27/2022
4.6.0-preview9.19421.4 84 6/27/2022
4.6.0-preview9.19416.11 100 6/27/2022
4.6.0-preview8.19405.3 91 6/27/2022
4.6.0-preview7.19362.9 87 6/27/2022
4.6.0-preview6.19303.8 92 6/27/2022
4.6.0-preview6.19264.9 94 6/27/2022
4.6.0-preview5.19224.8 98 6/27/2022
4.6.0-preview4.19212.13 90 6/27/2022
4.6.0-preview3.19128.7 80 6/27/2022
4.6.0-preview.19073.11 91 6/27/2022
4.6.0-preview.18571.3 84 6/27/2022
4.5.1 85 6/27/2022
4.5.1-servicing-27114-05 84 6/27/2022
4.5.0 83 6/27/2022
4.5.0-rc1 83 6/27/2022
4.5.0-preview2-26406-04 99 6/27/2022
4.5.0-preview1-26216-02 87 6/27/2022
4.5.0-preview1-25914-04 108 6/27/2022
4.4.0 84 6/27/2022
4.4.0-preview2-25405-01 82 6/27/2022
4.4.0-preview1-25305-02 89 6/27/2022
4.3.0 92 6/27/2022
4.3.0-preview1-24530-04 101 6/27/2022
4.0.1 79 6/27/2022
4.0.1-rc2-24027 93 6/27/2022
4.0.1-beta-23516 107 6/27/2022
4.0.1-beta-23409 107 6/27/2022
4.0.1-beta-23225 91 6/27/2022
4.0.0 96 6/27/2022
4.0.0-beta-23109 85 6/27/2022
4.0.0-beta-23019 79 6/27/2022
4.0.0-beta-22816 104 6/27/2022
4.0.0-beta-22605 72 6/27/2022
4.0.0-beta-22416 97 6/27/2022
4.0.0-beta-22231 91 6/27/2022