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

default to bom = true in CSV.write? #697

Closed
kafisatz opened this issue Jul 28, 2020 · 2 comments
Closed

default to bom = true in CSV.write? #697

kafisatz opened this issue Jul 28, 2020 · 2 comments

Comments

@kafisatz
Copy link
Contributor

What is the motivation for defaulting bom = false in CSV.write ?

I just noticed, that on Windows, when I write a CSV and open it with Excel (which seems frequent use case), "ä" and similar are not displayed correctly.

@quinnj
Copy link
Member

quinnj commented Jul 28, 2020

I guess that means excel requires a BOM character in order to understand UTF8? When I import a csv, I have the option to choose a "file origin" and can select UTF8 from the list. Maybe that would resolve your issues? Writing the BOM character by default would be breaking and is kind of a legacy technique in the world these days.

@kafisatz
Copy link
Contributor Author

Ah ok. I did not realize this would be breaking. Fine for me.
I was referring to opening by double click. This does not prompt any dialog wrt encoding (or delimiter).

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