angular-ui/ui-grid

Encoding issue with Excel on OSX

Open

#5428 aperta il 23 mag 2016

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
help wanted

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hello,

I encounter an issue with the encoding, when opening an exported csv file with Excel (on OSX). My csv contains some accentuated caracters. But, Excel does not correctly detect the encoding :

The csv is actually an UTF-8 file, I checked with a text editor :

One weird thing, is that Excel does not seem to recognize the encoding when importing the csv manually :

I tried playing with this option :

exporterOlderExcelCompatibility: true

But with no luck. It just made a mess with the first caracters :

I made the test that if I convert my UTF-8 file into UTF-16LE, then Excel will open it correctly. Is there any option to set the encoding during the export ? Or maybe a workaround to make it work ?

Thanks in advance for any help.

Regards,

Kilian

Guida contributor