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

UnicodeDecodeError when running utils in window #343

Closed
juanulload opened this issue Sep 3, 2020 · 2 comments
Closed

UnicodeDecodeError when running utils in window #343

juanulload opened this issue Sep 3, 2020 · 2 comments

Comments

@juanulload
Copy link

juanulload commented Sep 3, 2020

Asking for some help here. I'm trying to work with utils but keep getting this:

error_twarc_util

This is the error that display after change the system locale to utf-8, as mentioned in here

In that issue, @edsu gives a solution, but I'm not really sure how to implement it. I have python3 but don't know how to create the openhook mentioned

@igorbrigadir
Copy link
Contributor

I think to solve this - you need to use iconv to convert the camionerosporchile.jsonl file to utf-8 instead of utf16 or whatever windows has written it as, see here for how to do that: https://stackoverflow.com/questions/64860/best-way-to-convert-text-files-between-character-sets

@igorbrigadir
Copy link
Contributor

Also related to #207

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