Jelajahi Sumber

enh: unicode char support for user import

Timothy Jaeryang Baek 10 bulan lalu
induk
melakukan
791c19acf7

+ 1 - 1
src/lib/components/admin/Users/UserList/AddUserModal.svelte

@@ -109,7 +109,7 @@
 					stopLoading();
 					stopLoading();
 				};
 				};
 
 
-				reader.readAsText(file);
+				reader.readAsText(file, 'utf-8');
 			} else {
 			} else {
 				toast.error($i18n.t('File not found.'));
 				toast.error($i18n.t('File not found.'));
 			}
 			}