Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
High/non ASCII characters in csv file are not displayed correctly when exporting from IE #7084
When exporting High\non ASCII characters (for example "哈哈ôéàÜ의 사용") to CSV using client side export from IE 11 the characters are not displayed correctly (in the case of the example above they appear as "å“ˆå“ˆÃ´Ã©Ã Ãœì�˜ ì‚¬ìš©").
The issue is that when creating the blob from the csv content the BOM has to be prepended to the content.
Possible fix would be:
Setting the type is optional but a good practice.
but since IE uses other API it has to be done for IE separately.
Thank you for reporting.
I have tested IE11 on Win7 and Win10 - both are rendering the text correctly and exported file contains proper text. Demo: https://jsfiddle.net/qqhL3L5f/
@brannislav Could you provide a demo you have used and IE version + OS version used? Maybe the program you are using for displaying the CSV is not using correct encoding? What program have you used?
Indeed using Notepad or Notepad++ works fine as they are not affected by the missing BOM.
However I still think that not having the BOM is an issue and will affect some applications (like MS Office). Also the exported files should be consistent regardless of the browser used and currently all other browser export csv with BOM.