System.Text.Encoding.CodePages 10.0.0-preview.6.25358.103

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.
108
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
106
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
101
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.
100
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
98
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
96
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
92
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
91
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
88
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
87
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
86
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
86
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore. 4353a76c439e02cd9fa44f412ce73d564c749285 When using NuGet 3.x this package requires at least version 3.4.
86
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
85
Microsoft.Build.Utilities.Core
This package contains the Microsoft.Build.Utilities assembly which is used to implement custom MSBuild tasks.
84
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NETCore. fa5143502b6eb9c1a3291b15d1074e416d5b1ea0 When using NuGet 3.x this package requires at least version 3.4.
83
Microsoft.Build
This package contains the Microsoft.Build assembly which is used to create, edit, and evaluate MSBuild projects.
83
Microsoft.NETCore.UniversalWindowsPlatform
Provides a set of packages that can be used when building Universal Windows applications on .NET. 5.3.0 contains .NET Native 1.6 with lots of great improvements, including addressing over 100 customer reported issues since .NET Native 1.4. When using Visual Studio this package requires Visual Studio 2017 or later. When using NuGet 3.x this package requires at least version 3.4.
82

.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-preview.6.25358.103 2 7/19/2025
10.0.0-preview.5.25277.114 6 6/8/2025
10.0.0-preview.4.25258.110 10 5/16/2025
10.0.0-preview.3.25171.5 14 4/11/2025
10.0.0-preview.2.25163.2 17 3/23/2025
10.0.0-preview.1.25080.5 27 2/27/2025
9.0.7 4 7/11/2025
9.0.6 5 6/15/2025
9.0.5 12 5/17/2025
9.0.4 18 4/9/2025
9.0.3 18 3/14/2025
9.0.2 33 2/14/2025
9.0.1 22 1/17/2025
9.0.0 34 11/18/2024
9.0.0-rc.2.24473.5 28 10/13/2024
9.0.0-rc.1.24431.7 29 9/11/2024
9.0.0-preview.7.24405.7 43 8/13/2024
9.0.0-preview.6.24327.7 35 7/10/2024
9.0.0-preview.5.24306.7 45 6/14/2024
9.0.0-preview.4.24266.19 42 6/4/2024
9.0.0-preview.3.24172.9 52 4/18/2024
9.0.0-preview.2.24128.5 41 3/27/2024
9.0.0-preview.1.24080.9 39 2/21/2024
8.0.0 53 11/15/2023
8.0.0-rc.2.23479.6 60 10/16/2023
8.0.0-rc.1.23419.4 52 9/15/2023
8.0.0-preview.7.23375.6 46 8/23/2023
8.0.0-preview.6.23329.7 47 7/31/2023
8.0.0-preview.5.23280.8 58 8/1/2023
8.0.0-preview.4.23259.5 53 8/1/2023
8.0.0-preview.3.23174.8 61 5/12/2023
8.0.0-preview.2.23128.3 50 5/6/2023
8.0.0-preview.1.23110.8 55 2/23/2023
7.0.0 50 12/3/2022
7.0.0-rc.2.22472.3 75 12/3/2022
7.0.0-rc.1.22426.10 64 9/15/2022
7.0.0-preview.7.22375.6 68 9/14/2022
7.0.0-preview.6.22324.4 65 8/12/2022
7.0.0-preview.5.22301.12 56 6/27/2022
7.0.0-preview.4.22229.4 70 6/27/2022
7.0.0-preview.3.22175.4 70 6/27/2022
7.0.0-preview.2.22152.2 58 6/27/2022
7.0.0-preview.1.22076.8 53 6/27/2022
6.0.2-mauipre.1.22102.15 67 6/27/2022
6.0.2-mauipre.1.22054.8 67 6/27/2022
6.0.1 23 11/18/2024
6.0.0 74 6/27/2022
6.0.0-rc.2.21480.5 54 6/27/2022
6.0.0-rc.1.21451.13 58 6/27/2022
6.0.0-preview.7.21377.19 64 6/27/2022
6.0.0-preview.6.21352.12 68 6/27/2022
6.0.0-preview.5.21301.5 68 6/27/2022
6.0.0-preview.4.21253.7 76 6/27/2022
6.0.0-preview.3.21201.4 67 6/27/2022
6.0.0-preview.2.21154.6 51 6/27/2022
6.0.0-preview.1.21102.12 58 6/27/2022
5.0.0 62 6/27/2022
5.0.0-rc.2.20475.5 58 6/27/2022
5.0.0-rc.1.20451.14 72 6/27/2022
5.0.0-preview.8.20407.11 71 6/27/2022
5.0.0-preview.7.20364.11 59 6/27/2022
5.0.0-preview.6.20305.6 68 6/27/2022
5.0.0-preview.5.20278.1 57 6/27/2022
5.0.0-preview.4.20251.6 79 6/27/2022
5.0.0-preview.3.20214.6 77 6/27/2022
5.0.0-preview.2.20160.6 55 6/27/2022
5.0.0-preview.1.20120.5 52 6/27/2022
4.7.1 66 6/27/2022
4.7.0 53 6/27/2022
4.7.0-preview3.19551.4 65 6/27/2022
4.7.0-preview2.19523.17 72 6/27/2022
4.7.0-preview1.19504.10 63 6/27/2022
4.6.0 67 6/27/2022
4.6.0-rc1.19456.4 63 6/27/2022
4.6.0-preview9.19421.4 50 6/27/2022
4.6.0-preview9.19416.11 65 6/27/2022
4.6.0-preview8.19405.3 59 6/27/2022
4.6.0-preview7.19362.9 60 6/27/2022
4.6.0-preview6.19303.8 63 6/27/2022
4.6.0-preview6.19264.9 65 6/27/2022
4.6.0-preview5.19224.8 73 6/27/2022
4.6.0-preview4.19212.13 58 6/27/2022
4.6.0-preview3.19128.7 53 6/27/2022
4.6.0-preview.19073.11 54 6/27/2022
4.6.0-preview.18571.3 60 6/27/2022
4.5.1 58 6/27/2022
4.5.1-servicing-27114-05 55 6/27/2022
4.5.0 56 6/27/2022
4.5.0-rc1 49 6/27/2022
4.5.0-preview2-26406-04 75 6/27/2022
4.5.0-preview1-26216-02 52 6/27/2022
4.5.0-preview1-25914-04 81 6/27/2022
4.4.0 59 6/27/2022
4.4.0-preview2-25405-01 52 6/27/2022
4.4.0-preview1-25305-02 57 6/27/2022
4.3.0 57 6/27/2022
4.3.0-preview1-24530-04 70 6/27/2022
4.0.1 54 6/27/2022
4.0.1-rc2-24027 63 6/27/2022
4.0.1-beta-23516 81 6/27/2022
4.0.1-beta-23409 71 6/27/2022
4.0.1-beta-23225 66 6/27/2022
4.0.0 63 6/27/2022
4.0.0-beta-23109 58 6/27/2022
4.0.0-beta-23019 49 6/27/2022
4.0.0-beta-22816 76 6/27/2022
4.0.0-beta-22605 44 6/27/2022
4.0.0-beta-22416 68 6/27/2022
4.0.0-beta-22231 62 6/27/2022