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 ASCII encoding support #78

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Add ASCII encoding support #78

merged 1 commit into from
Jun 16, 2023

Conversation

dnicolson
Copy link
Contributor

@dnicolson dnicolson commented Mar 9, 2023

This pull request adds support for ASCII detection.

Fixes #76.

@runk
Copy link
Owner

runk commented Mar 10, 2023

If you'd rebase with master, failures with node@18 from should be all fixed

src/encoding/ascii.ts Outdated Show resolved Hide resolved
@dnicolson
Copy link
Contributor Author

It's been a while, but it seems that the ASCII control characters were the problem with the original tests and the resulting changes to the ISO-8859-1 tests.

Supporting all 27 languages that use the ISO-8859-1 character set seems beyond the scope of this pull request. It's probably just easier to use https://github.com/chardet/chardet for that purpose.

@runk runk merged commit 7f95705 into runk:master Jun 16, 2023
@github-actions
Copy link

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ASCII file detected as ISO-8859-1
2 participants