How to change charset to SHIFT-JIS when export CSV?
How to change charset to SHIFT-JIS when export CSV?

I try code:
dom: 'Bfrtip',
buttons: [
{
filename: 'export_csv,
extend: 'csv',
charset: 'SHIFT-JIS',
bom: true,
}
But it doesn't work!
May someone help me, thank you everyone!
This discussion has been closed.
Answers
Hi @hoangemini ,
This thread may help. If not, we're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
I'm in the same trouble.
I'd like to set the charset to shift_jis so that the exported csv will be loaded on Excel.
I looked into the thread mentioned above.
However I can't find any solution to handle this case.
I'll be so happy if someone help me.
As I said above, please provide a test case showing the problem and we can take a look.
It would require your page to be in the character set you want to export to. We don't attempt to do any character set conversion. The charset option is just for the MIME header.
Allan