-
Notifications
You must be signed in to change notification settings - Fork 15
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
Reading a binary file throws an error as reading from unicode is not handled. #3
Comments
encoding attribute is there in the python version. That may not be exposed. Need to check. |
I think there is a different reason for this. The original google-files seem to have a slightly different format and the parser for the binary file reads one byte too far. Removing the I solved it by including the additional loading option :google to the existing |
PR #8 fixes this |
would you please write the code of what you are saying I got confused honestly , |
so I did the implementation by my self, and I sharing it with you, https://gist.github.com/alabrashJr/d71cf74bc9713bb0a5bb12ccd331a405 |
When requested to read from a binary, which has unicode, it results in ERROR: UnicodeError: invalid character index.
To reproduce, load the test file from Google https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit?usp=sharing
The text was updated successfully, but these errors were encountered: