realm-studio
realm-studio copied to clipboard
Lines containing non-ascii data are skipped when importing data from CSV
Describe the bug
Lines with non-ascii characters seems to be skipped when importing data from a CSV.
To Reproduce
- Create a CSV named "Person.csv"
name,age Alice,17 Bob,30 Kræn,30 Charlie,65 Gäää,10
- Go to "File" → "Create Realm from" → "csv".
- Select the "Person.csv"
- See how only Alice, Bob and Charlie makes it into the final Realm file.
Expected behavior All five rows should get imported.
Versions:
- OS: Mac (probably N/A)
- Studio Version 3.8.1
- Realm Object Server version N/A
Additional context I found this trying to reproduce another issue with importing non-ascii characters: https://forum.realm.io/t/realm-studio-not-importing-diacritics-from-csv-file/2933
See the data importer source-code: https://github.com/realm/realm-studio/blob/master/src/services/data-importer/csv/CSVDataImporter.ts