How to add UTF-8 to csv

HI Team,
Am using below code to export pivot table in to CSV.

webix.toCSV(
$$(“pivot”),
{
filename : “Coalition_Advanced_Cross_Tab_” + dd
+ “” + mm + “” + yyyy
})

And, My issue is am not getting proper name if name have any special characters. Need to add UTF-8 to handle special characters.

Please let me know the solution , How to handle special characters in CSV from pivot.

Thank you.

Hi Team,
Can you please update on this.
Thank you.

As far as I can see, it doesn’t depend on our toCSV method. Please try to define charset attribute for the page as follows:

<head>
    <!-- other content -->
    <meta charset="utf-8">
</head>