We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
shift_jis
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems shift-jis is not a common use name of the Shift-JIS codepage. How about changing the Shift-JIS codepage name to shift_jis?
shift-jis
Shift_JIS
The change will affect two places: shift-jis -> shift_jis
UTF-unknown/src/Core/CodepageName.cs
Line 151 in 43623b7
UTF-unknown/README.md
Line 102 in 43623b7
The text was updated successfully, but these errors were encountered:
Sounds good to me, but I guess it's a (semantic) breaking change?
Sorry, something went wrong.
We can check this for the rest of the names as well. Here's an example for shift_jis
https://github.com/dotnet/runtime/blob/547b2018a9013e18a9128478355380796d7ebccd/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs#L87-L94
I think also that shift_jis is better, but any proposal to change it without breaking others? (E.g. code build on shift-jis)
Sorry, but I didn't quite understand the question :)
For the creation of the Encoding object, this shouldn't be affected, in my opinion.
Encoding
This will only affect the EncodingName
EncodingName
UTF-unknown/src/DetectionDetail.cs
Line 57 in 43623b7
This is an issue:
if(encoder.Detected?.EncodingName == "shift-jis") { ... }
As it will be "shift_jis".
I think this is a good idea, but because it's a semantic breaking change, it should wait for v3
No branches or pull requests
It seems
shift-jis
is not a common use name of the Shift-JIS codepage. How about changing the Shift-JIS codepage name toshift_jis
?shift_jis
https://docs.microsoft.com/en-us/dotnet/api/system.text.encodinginfo.name?view=net-5.0Shift_JIS
https://www-archive.mozilla.org/projects/intl/chardet.htmlshift_jis
https://en.wikipedia.org/wiki/Code_page_932_(Microsoft_Windows)Shift_JIS
Shift_JIS
shift-jis
as its label, but the name is stillshift_jis
https://encoding.spec.whatwg.org/#shift_jisThe change will affect two places:
->shift-jis
shift_jis
UTF-unknown/src/Core/CodepageName.cs
Line 151 in 43623b7
UTF-unknown/README.md
Line 102 in 43623b7
The text was updated successfully, but these errors were encountered: