vue-json-csv icon indicating copy to clipboard operation
vue-json-csv copied to clipboard

encoding option seems to be not working

Open yokada0807 opened this issue 5 years ago • 1 comments

Hi, thx for the great library. :) I'd like to export csv file on Shift_JIS format and implemented as below.

    <download-csv
      :data = "data"
      encoding = "shift_jis"
    >

I also tried the values such as "shiftjis", "shift-jis" and "sjis" but none of them worked. It just gives me a csv with utf-8. There may be something wrong with my way of implementation. If it's the case, would you tell me the way to indicate the encoding format? I looked through the docs but can't figure it out... Thx,

yokada0807 avatar Sep 23 '20 12:09 yokada0807

After re-reading the doc of Papaparse (the lib I'm using to generate the CSV file), it actually doesn't support encoding for exporting ...

I should either remove the "feature" or find another way to set the encoding.

Belphemur avatar Oct 04 '20 15:10 Belphemur