Skip to content

Add should_rename_legacy flag to allow WHATWG-inspired renaming#264

Merged
dan-blanchard merged 6 commits intomainfrom
feature/legacy_mode
Jul 17, 2022
Merged

Add should_rename_legacy flag to allow WHATWG-inspired renaming#264
dan-blanchard merged 6 commits intomainfrom
feature/legacy_mode

Conversation

@dan-blanchard
Copy link
Copy Markdown
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
Copy Markdown
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.

1 participant