Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding option seems to be not working #49

Open
yokada0807 opened this issue Sep 23, 2020 · 1 comment
Open

encoding option seems to be not working #49

yokada0807 opened this issue Sep 23, 2020 · 1 comment

Comments

@yokada0807
Copy link

yokada0807 commented Sep 23, 2020

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,

@Belphemur
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants