-
Notifications
You must be signed in to change notification settings - Fork 86
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
Text file encoding support (UTF8 / ANSI) #20
Comments
OK so you would need a way to hook into the arguments passed into readAsText 0. Do you want to switch the encoding per-file or globally? This option could be added as a global configuration value, or could be attached onto the file object in the onbeforestart callback. |
It would be nice to have a feature to "autodiscover" the encoding of var FileReaderOptions = { Thanks |
Seems good, with the caveat that the default for Regarding auto discovery, this would be even better but I don't know of any way to do that with the current API - the encoding must be specified as the second parameter to readAsText |
I tried this: It didn't work for me. I'd like to contribute. However I'm confused how github works. I don't know how to contribute. Is there a way to switch between ANSI/UTF-8 as suggested here? |
You can fork the repository and then make the changes locally and create a pull request.
Around this line you could add something like:
|
Superb plugin!
Please, if possible, add text file encodind option for reading the file contents.
The text was updated successfully, but these errors were encountered: