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

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

hoangeminihoangemini Posts: 2Questions: 2Answers: 0

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!

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    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

  • yoshiyoshi Posts: 1Questions: 0Answers: 0

    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.

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    As I said above, please provide a test case showing the problem and we can take a look.

  • allanallan Posts: 63,195Questions: 1Answers: 10,412 Site admin

    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

This discussion has been closed.