Belphemur/vue-json-csv

Encoding problems

Closed this issue · 2 comments

egcmi commented

Hi,
first of all thanks for the great work!

I think I am experiencing some issues with encoding.
I have this data that I pass to JsonCSV:

data = [{
order: 37
lastname: Širůčková
firstname: Tereza
}]

and I expect the downloaded csv to contain:

order,lastname,firstname
37,Širůčková,Tereza

but instead I get this output:

order,lastname,firstname
37,`iro
ková,Tereza

Encoding is set to default (utf8). I tried changing it to utf16 to no avail. Anyway I don't think that's the issue, as I use another tool to generate pdf files with encoding set to utf8 and have no problem. I did not notice similar behaviour with other characters so far. Is it a known issue? Is there a fix for this? If you could point me in the right direction it would be highly appreciated.

Thank you in advance

🎉 This issue has been resolved in version 1.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Hello @egcmi,

If you upgrade the lib to the latest version, it should work flawlessly :)

Thanks for the bug report.