Skip to content

Commit 323cb0f

Browse files
use utf-8 for decoding csv files
1 parent d6148e1 commit 323cb0f

File tree

1 file changed

+1
-1
lines changed
  • client/packages/lowcoder/src/comps/comps/fileComp

1 file changed

+1
-1
lines changed

client/packages/lowcoder/src/comps/comps/fileComp/fileComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export function resolveParsedValue(files: UploadFile[]) {
210210
.then((a) => {
211211
const ext = mime.getExtension(f.originFileObj?.type ?? "");
212212
if (ext === "xlsx" || ext === "csv") {
213-
const workbook = XLSX.read(a, { raw: true });
213+
const workbook = XLSX.read(a, { raw: true, codepage: 65001 });
214214
return XLSX.utils.sheet_to_json(workbook.Sheets[workbook.SheetNames[0]], {
215215
raw: false,
216216
});

0 commit comments

Comments
 (0)