Uploaded image for project: 'Realm Studio'
  1. Realm Studio
  2. RSTUDIO-307

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

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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"
        ```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

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: