Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58498

macOS regression: emojis from JSON are broken when mixed with cyrillic

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.8.0
    • None
    • macOS 10.11/10.12, Xcode 7/8, QtCreator 4.2.1

      If a JSON string contains emojis mixed with cyrillic letters, then in most cases emojis aren't displayed correctly after parsing JSON with QJsonDocument. In Qt 5.6.2 it doesn't happen.

      The issue can be reproduced in the attached test project.

      Edit: I've just found out that it's impossible to enter emojis in QtCreator 4.2.1 using Cmd+Ctrl+Space (seems related), and that pasting content of JSON file from the test project directly in QtCreator 4.2.1 results in the same broken emojis in strings with cyrillic:

      Running the test project with strings directly in code produces the same results as with reading from JSON. More looks like a rendering bug.

        1. Screen Shot 2017-01-28 at 23.23.28.png
          19 kB
          Andrey Filipenkov
        2. Screen Shot 2017-01-28 at 23.23.58.png
          19 kB
          Andrey Filipenkov
        3. qjson_emoji_cyrillic_bug.zip
          2 kB
          Andrey Filipenkov
        4. Screen Shot 2017-01-29 at 10.13.09.png
          16 kB
          Andrey Filipenkov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            kambala Andrey Filipenkov
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes