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

Internal Server Error - As a result of a windows smart quote in csv uploaded #12

Open
CDeLeon94 opened this issue Mar 16, 2021 · 0 comments

Comments

@CDeLeon94
Copy link

CDeLeon94 commented Mar 16, 2021

Just testing ahead of our event:

I created a csv of projects, and uploaded it to gavel in the noted format. I got:

Uh oh.

Internal server error. Click the button below and go back. Refreshing the page from there usually fixes things.

Inspecting the logs, there is

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 222

It's a smart quote due to me editing the file in a windows environment. I resaved the file in utf-8, and the upload worked as expected.

This particular error could be solved by reading the file with encoding='cp1252'.

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

1 participant