Skip to content
New issue

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

Add should_rename_legacy flag to allow WHATWG-inspired renaming #264

Merged
merged 6 commits into from Jul 17, 2022

Conversation

dan-blanchard
Copy link
Member

This PR adds a new should_rename_legacy flag, so that people can opt into renaming legacy encodings according to the W3C offshoot WHATWG group's suggested mapping here. This should address long-standing complaint about us returning gb2312 instead of at least gbk, and things like that. One interesting side effect of this change is that they suggest mapping ASCII and ISO-8859-1 to Windows-1252, so we will return Windows-1252 a lot more often with this flag on.

@dan-blanchard dan-blanchard changed the title Add should_rename_legacy flag to allow W3C renaming Add should_rename_legacy flag to allow WHATWG-inspired renaming Jun 29, 2022
@dan-blanchard
Copy link
Member Author

After further reading about different encodings, it becomes clear that annoyingly the WHATWG group's names for some encodings to do not match the Python names, so I'm going to tweak this to more directly map what everyone has been asking for 😅

@dan-blanchard dan-blanchard merged commit fa4c1af into main Jul 17, 2022
@dan-blanchard dan-blanchard deleted the feature/legacy_mode branch July 17, 2022 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant