File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments