Merge pull request #940 from Budibase/bugfix/csv-charset-problem
fixes encoding issue of file to work with non-english chars
This commit is contained in:
commit
be9f036b40
|
@ -82,7 +82,7 @@
|
||||||
files = fileArray
|
files = fileArray
|
||||||
validateCSV()
|
validateCSV()
|
||||||
})
|
})
|
||||||
reader.readAsBinaryString(fileArray[0])
|
reader.readAsText(fileArray[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
async function omitColumn(columnName) {
|
async function omitColumn(columnName) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ Array [
|
||||||
Object {
|
Object {
|
||||||
"Address": "5 Sesame Street",
|
"Address": "5 Sesame Street",
|
||||||
"Age": 4324,
|
"Age": 4324,
|
||||||
"Name": "Bert",
|
"Name": "Bertå",
|
||||||
},
|
},
|
||||||
Object {
|
Object {
|
||||||
"Address": "1 World Trade Center",
|
"Address": "1 World Trade Center",
|
||||||
|
|
|
@ -89,7 +89,7 @@ describe("CSV Parser", () => {
|
||||||
})
|
})
|
||||||
).toEqual([
|
).toEqual([
|
||||||
{
|
{
|
||||||
Name: "Bert",
|
Name: "Bertå",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Ernie",
|
Name: "Ernie",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"Name","Age","Address"
|
"Name","Age","Address"
|
||||||
"Bert","4324","5 Sesame Street"
|
"Bertå","4324","5 Sesame Street"
|
||||||
"Ernie","34","1 World Trade Center"
|
"Ernie","34","1 World Trade Center"
|
||||||
"Big Bird","23423","44 Second Avenue"
|
"Big Bird","23423","44 Second Avenue"
|
|
Loading…
Reference in New Issue