diff --git a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte index d328df4b40..810d7960f5 100644 --- a/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte +++ b/packages/builder/src/components/backend/TableNavigator/TableDataImport.svelte @@ -82,7 +82,7 @@ files = fileArray validateCSV() }) - reader.readAsBinaryString(fileArray[0]) + reader.readAsText(fileArray[0]) } async function omitColumn(columnName) { diff --git a/packages/server/src/utilities/tests/__snapshots__/csvParser.spec.js.snap b/packages/server/src/utilities/tests/__snapshots__/csvParser.spec.js.snap index 1966637f56..3c532413fa 100644 --- a/packages/server/src/utilities/tests/__snapshots__/csvParser.spec.js.snap +++ b/packages/server/src/utilities/tests/__snapshots__/csvParser.spec.js.snap @@ -5,7 +5,7 @@ Array [ Object { "Address": "5 Sesame Street", "Age": 4324, - "Name": "Bert", + "Name": "Bertå", }, Object { "Address": "1 World Trade Center", diff --git a/packages/server/src/utilities/tests/csvParser.spec.js b/packages/server/src/utilities/tests/csvParser.spec.js index 5fc4a9ffe3..48e275fdd1 100644 --- a/packages/server/src/utilities/tests/csvParser.spec.js +++ b/packages/server/src/utilities/tests/csvParser.spec.js @@ -89,7 +89,7 @@ describe("CSV Parser", () => { }) ).toEqual([ { - Name: "Bert", + Name: "Bertå", }, { Name: "Ernie", diff --git a/packages/server/src/utilities/tests/test.csv b/packages/server/src/utilities/tests/test.csv index 2266b348cd..2a193e4df2 100644 --- a/packages/server/src/utilities/tests/test.csv +++ b/packages/server/src/utilities/tests/test.csv @@ -1,4 +1,4 @@ "Name","Age","Address" -"Bert","4324","5 Sesame Street" +"Bertå","4324","5 Sesame Street" "Ernie","34","1 World Trade Center" "Big Bird","23423","44 Second Avenue" \ No newline at end of file