Skip to content

Commit 8341e88

Browse files
committed
import with utf-8 encoding
1 parent 4ab8d70 commit 8341e88

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

libs/app-canvas/src/app/components/navbar-components.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export class NavbarComponent extends Component<
202202
}, 0);
203203
}
204204
});
205-
reader.readAsText(files[0]);
205+
reader.readAsText(files[0], 'utf-8');
206206
}
207207
};
208208
input.click();
@@ -681,7 +681,7 @@ export class NavbarComponent extends Component<
681681
}, 0);
682682
}
683683
});
684-
reader.readAsText(files[0]);
684+
reader.readAsText(files[0], 'utf-8');
685685
}
686686
};
687687
input.click();
@@ -736,7 +736,7 @@ export class NavbarComponent extends Component<
736736
}
737737
}
738738
});
739-
reader.readAsText(files[0]);
739+
reader.readAsText(files[0], 'utf-8');
740740
}
741741
};
742742
input.click();

libs/app-canvas/src/app/utils/create-upload-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const createUploadJSONFileInput = (): Promise<any> => {
2424
console.error('Error reading file', event);
2525
reject(event);
2626
});
27-
reader.readAsText(files[0]);
27+
reader.readAsText(files[0], 'utf-8');
2828
}
2929
};
3030
input.click();

0 commit comments

Comments
 (0)