Skip to content

Commit 30ef278

Browse files
authored
Merge pull request #68 from yowkah/patch-1
allow encoding selection through Papaparse config
2 parents 8fcbca3 + f90b44d commit 30ef278

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VueCsvInput.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
VueCsvImportData.rawCsv.value = null;
8383
}
8484
let reader = new FileReader();
85-
reader.readAsText(VueCsvImportData.file, "UTF-8");
85+
reader.readAsText(VueCsvImportData.file, props.parseConfig.encoding || "UTF-8");
8686
reader.onload = function (evt) {
8787
VueCsvImportData.csvSample = get(Papa.parse(evt.target.result, merge({
8888
preview: 10,

0 commit comments

Comments
 (0)