Replies: 1 comment
-
It is even worse. After sorting and comprehensive exception catching (displaying "--------" instead), I now get:
(I also enabled utf-7.) So it seems that the browser/email info fields are only available for the encodings that are available per default, otherwise an exception is thrown. And the codepages 38598 and 50220 to 57011 are completely missing and not listed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
not sure whether this should be an issue, or if I am just misunderstanding something.
I want to have access to as many encodings as possible, for translating some legacy texts from one encoding to another, or even better to UTF-8.
So I installed System.Text.Encoding.CodePages from Nuget and registered it. Now I can access seemingly all of the supported new encodings, with their codepages and names.
However, when I do the following:
I find the resulting list is not complete.
The whole range of 5xxxx (from 50220 to 57011) is missing.
Looking here: https://learn.microsoft.com/de-de/windows/win32/intl/code-page-identifiers
or here: https://learn.microsoft.com/de-de/dotnet/api/system.text.encoding.getencodings
those encodings should be included in the list. But they are missing.
I can "manually" access
GetEncoding(50220).WebName
, which correctly results in "iso-2022-jp
", orGetEncoding(57011).WebName
, which gives "x-iscii-pa
".But in the GetEncodings() List they are not present. What does this mean? Should I avoid providing these encodings? Are they somehow "not recommended"?
Then I found this issue: #70573 . That encoding doesn't give the right characters, and will not be fixed any soon.
Now I am not sure how to handle those additional encodings. Are they reliable? Correnctly implemented? Complete? If only some of them, then which ones? Unfortunately I cannot judge or test this.
How can I find out which of the encodings in System.Text.Encoding.CodePages I can use, and which I should avoid?
Beta Was this translation helpful? Give feedback.
All reactions