<q-table> export CSV foreign encoding (french) ?
-
Hello, I’m playing with the fantastic component <q-table> and have a question on how to encode french characters in columns names ?
https://quasar.dev/vue-components/table#Exporting-dataI have a column “Catégorie” which is exported to “CatÃ
gorie” in Excel.
It’s the same with data in rows.How to export accentuated chars in foreign languages like french or others ?
Thanks -
See:
https://quasar.dev/vue-components/table#Example--Export-to-csvYou’ll have to create your own
exportTable
function that will enforce ufc-8 encoding.For a more professional approach in regards to encoding we do recommend using:
https://csv.js.org/parse/
https://csv.js.org/stringify/