realm-studio icon indicating copy to clipboard operation
realm-studio copied to clipboard

Lines containing non-ascii data are skipped when importing data from CSV

Open kraenhansen opened this issue 5 years ago • 0 comments

Describe the bug

Lines with non-ascii characters seems to be skipped when importing data from a CSV.

To Reproduce

  1. Create a CSV named "Person.csv"
    name,age
    Alice,17
    Bob,30
    Kræn,30
    Charlie,65
    Gäää,10
    
  2. Go to "File" → "Create Realm from" → "csv".
  3. Select the "Person.csv"
  4. 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

kraenhansen avatar Nov 12 '19 08:11 kraenhansen