-
-
Notifications
You must be signed in to change notification settings - Fork 120
Better handling of encodings other than utf-8 for "sqlite-utils insert" #182
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
Comments
It looks like http://maps.natalian.org/data.txt is encoded as It would be worth improving the error message here. I could also add a |
I could use https://github.com/chardet/chardet to help here, though I'd rather not add it as a dependency ( |
For the moment I'm going to add a That error message could detect if the |
The file is opened for me by I think the way to do that is to open the file in binary mode and then wrap it in a codec reader: fp = codecs.getreader(encoding)(fp) |
Makefile:
csv-write.go
Error message is:
Little bit surprised if Go is spewing out bad Unicode, but I'm not sure how to grok
position 1234
..The text was updated successfully, but these errors were encountered: