ng-csv icon indicating copy to clipboard operation
ng-csv copied to clipboard

Special Characters issue

Open enniob opened this issue 9 years ago • 8 comments

I found an issue that when you have a special character it gets replaced with some other characters.

For example I had data that had the Ø symbol and that got replaced with Ø6 mm.

Any ideas on how to solve this issue? It works fine when I display on the page, just when I call ng-csv to export the data I see this on the CSV file.

I noticed the same issue when I try to display Japanese text.

enniob avatar Sep 11 '15 18:09 enniob

Yes I am also facing the same problem with special chracters

aliraza923 avatar Oct 21 '15 14:10 aliraza923

Same problem with à è ç …

jfgrang avatar Dec 02 '15 23:12 jfgrang

I am also having the issue with French special characters à è ç … What are the possible solutions?

whiz11 avatar Dec 23 '15 10:12 whiz11

Any update on this?

grauds avatar Apr 07 '16 13:04 grauds

I experience this issue when opening the generated CSV file directly in Excel however if I review the file in Notepad or a text editor then you can clearly see it has been exported correctly.

I am using the standard setting of UTF-8 as the encoding.

This was an issue with the BOM. When I set add-bom="true" the characters render correctly within Excel when opened directly.

petecleary avatar May 17 '16 08:05 petecleary

Hi, I am using:

<button class="" type="button" ng-csv="getData()" csv-header="getHeader()" add-bom="true" field-separator=";" filename="export.csv">Excel</button>

I still try:

<button class="" type="button" ng-csv="getData()" csv-header="getHeader()" add-bom="true" field-separator=";" charset="UTF-8" filename="export.csv">Excel</button>

but nothing work I get this text when open in excel: Raúl instead of Raúl

I am using v0.3.6 of ng-csv

pedro3900 avatar Jul 19 '16 18:07 pedro3900

The csv file looks good for Chinese characters after added add-bom="true" to the html file

janey0536 avatar Jul 21 '16 09:07 janey0536

I added like in comment before but for me not work in excel program

pedro3900 avatar Jul 21 '16 09:07 pedro3900