angular-ui/ui-grid

Encoding issue with Excel on OSX

Open

#5,428 建立於 2016年5月23日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (5,395 star) (2,496 fork)batch import
help wanted

描述

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

貢獻者指南