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

error when using detect function #30

Open
zunsakai opened this issue Mar 24, 2022 · 1 comment
Open

error when using detect function #30

zunsakai opened this issue Mar 24, 2022 · 1 comment

Comments

@zunsakai
Copy link

const EncodingJapanese = require('encoding-japanese');

console.log(EncodingJapanese.detect('chà')); // output: UNICODE
console.log(EncodingJapanese.detect('chào')); // output: SJIS

It seems like a bug, it's not SJIS

@Philostastically
Copy link

We are getting this bug too. For anyone in the future before they fix this, the function seems to still work if you pass an array. As the demo for Encoding.js demonstrates https://polygonplanet.github.io/encoding.js/tests/detect-file-encoding.html

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

No branches or pull requests

2 participants