Belphemur/vue-json-csv

encoding problem

dannykhoo opened this issue · 3 comments

i have set endoing='utf-8' ,but when export , the file still does not display the chinese font, any idea?

<download-csv class="text-black" :data="this.jsonData" name="BookInfo.csv" encoding="utf-8"> Export </download-csv>

jsonData: [{ 'name': '你好', 'city': 'New York', 'country': 'United States', 'birthdate': '1978-03-15', 'phone': { 'mobile': '1-541-754-3010', 'landline': '(541) 754-3010' } }, { 'name': 'Thessaloniki', 'city': 'Athens', 'country': 'Greece', 'birthdate': '1987-11-23', 'phone': { 'mobile': '+1 855 275 5071', 'landline': '(2741) 2621-244' } } ],

Notice to the developer: The exported file is encoded in UTF-8, but the BOM is missing, so some applications do not recognize the encoding.

Use of BOM for UTF-8 is actually discouraged : https://stackoverflow.com/questions/2223882/whats-the-difference-between-utf-8-and-utf-8-without-bom

But it seems Windows has a hard time without it ...

:tada: This issue has been resolved in version 1.2.10 :tada:

The release is available on:

Your semantic-release bot 📦🚀