camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

Encoding in csv export #3197

Closed svades closed 6 years ago

svades commented 6 years ago

When opening the exported .csv in Excel the text is wrongly encoded (the mutated vowels are wrong). Changing the encoding in https://github.com/camptocamp/ngeo/blob/master/src/services/csvdownload.js#L33 to utf-8-bom or similar inputs didn’t work.

By changing in https://github.com/camptocamp/ngeo/blob/master/src/services/csvdownload.js#L135 „attachment/csv“ to „text/csv“ the mutated vowels are correctly shown in Excel. Would it be possible to change this in your code?

Project:

fredj commented 6 years ago

you're proposed change make sense to me: the mime type is text/csv. See https://developer.mozilla.org/en-US/docs/Web/API/Blob/type

fredj commented 6 years ago

fixed with #3198