Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How QString conversions works these days? Is ICU still used?
Forum Updated to NodeBB v4.3 + New Features

How QString conversions works these days? Is ICU still used?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 187 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • shenlebantongyingS Offline
    shenlebantongyingS Offline
    shenlebantongying
    wrote on last edited by shenlebantongying
    #1

    I vaguely remember that when i learned Qt for the first time on Windows, the deployed program has to include some ICU related things.

    But recently, I noticed that the Qt installation on Linux doesn't depend on ICU at all 😅

    How Qt internally convert the utf8 ⇄ utf16 ⇄ utf32 if it doesn't depends on ICU?

    Is another library internally used, or there is something written from scratch just for Qt?

    In other words, how QString::toStdU32String and QString::fromUtf8 works?

    jsulmJ 1 Reply Last reply
    0
    • shenlebantongyingS shenlebantongying

      I vaguely remember that when i learned Qt for the first time on Windows, the deployed program has to include some ICU related things.

      But recently, I noticed that the Qt installation on Linux doesn't depend on ICU at all 😅

      How Qt internally convert the utf8 ⇄ utf16 ⇄ utf32 if it doesn't depends on ICU?

      Is another library internally used, or there is something written from scratch just for Qt?

      In other words, how QString::toStdU32String and QString::fromUtf8 works?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @shenlebantongying said in How QString conversions works these days? Is ICU still used?:

      how QString::toStdU32String and QString::fromUtf8

      You could take a look at the implementation of these methods

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved