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

Handle different CSV file encodings #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tajchert
Copy link

Currently this app handles only UTF-8 encoded CSV files, which is fine in many cases.

This change allows to gracefully handle different CSV file encodings in a way that even when you have multiple different files with different encoding it will work well. I added only few most popular, as well some verbose message so any new person can easily add theirs as needed. Another way would be to use some library like chardet in Python and detect file encoding but it is not very fast for bigger files.

I stumbled upon this when working with multiple CSV files on MacOS that are MacRoman encoded (especially if you export CSV from some online spreadsheet tools.

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

Successfully merging this pull request may close these issues.

1 participant