High/non ASCII characters in csv file are not displayed correctly when exporting from IE #7084
Comments
Hi, 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? |
Thanks, for providing a fix @TorsteinHonsi ! |
Thanks for suggesting the actual fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
highcharts/js/modules/export-data.src.js
Line 291 in 6da435a
Possible fix would be:
blobObject = new win.Blob(["\uFEFF" + content], {type: 'text/csv'})
Setting the type is optional but a good practice.
This is already done for all other browsers here:
highcharts/js/modules/export-data.src.js
Line 319 in 6da435a
but since IE uses other API it has to be done for IE separately.
The text was updated successfully, but these errors were encountered: