pratik227/vue3-json-excel

How to set csv file to UTF-8 ?

Closed this issue · 5 comments

Hi, there are many chinese words in my json, is there any key for setting UTF-8 in csv file ?
Thanks!

Hi @IrisChi,

json_meta: [
      [
        {
          key: "charset",
          value: "utf-8",
        },
      ],
    ],

Can you try :meta="json_meta"

Thanks,
Pratik Patel

Hi @pratik227 ,
image
I tried, but still not work QQ
Thanks for answering

Hi @IrisChi,

What should be the output sorry I didn't get it.

Thanks,
Pratik Patel

Hi @pratik227 ,
image
The screenshot is the output file opened with Notepad++, and the data of the 'name' column is chinese words.
When I use google spreadsheets to import this file, the result was correct.
I think maybe its the problem of excel in windows.
Thanks !

Ok great