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

❇️ Allow fallback on specified encoding if any #71

Merged
merged 3 commits into from
Jul 30, 2021

Conversation

Ousret
Copy link
Member

@Ousret Ousret commented Jul 23, 2021

Charset-Normalizer comes with a preemptive encoding detector but until this instant, it was not trusted at all when the MD computed a ratio too high in the first place when decoding using the specified encoding.

Now, with this PR, in case the detection would not find any best suitable match, will use the specified one if it suits the content.

@Ousret Ousret added enhancement New feature or request detection Related to the charset detection mechanism, chaos/mess/coherence labels Jul 23, 2021
@Ousret Ousret marked this pull request as draft July 23, 2021 21:49
@Ousret Ousret marked this pull request as ready for review July 30, 2021 20:49
@Ousret Ousret merged commit 8247f3a into master Jul 30, 2021
@Ousret Ousret deleted the patch-fallback-on-specified branch July 30, 2021 20:50
@Ousret Ousret mentioned this pull request Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
detection Related to the charset detection mechanism, chaos/mess/coherence enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant