-
Notifications
You must be signed in to change notification settings - Fork 97
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
TypeError: Cannot assign to read only property '1' of string ' #85
Comments
@wellenChen this might be solved/related to this issue which had a fix merged but not released |
https://github.com/gignupg/Detect-File-Encoding-And-Language works very well. |
@GreatAuk I tried to use the package you linked, but it does not support ISO encoding at all. |
Suggest to use https://www.npmjs.com/package/chardet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
const buffer = fs.readFileSync(path);
const encodingResult = jschardet.detect(buffer);
console.log(encodingResult.encoding);
The text was updated successfully, but these errors were encountered: