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. Decode special characters in Qt
Forum Updated to NodeBB v4.3 + New Features

Decode special characters in Qt

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.9k Views 1 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.
  • L Offline
    L Offline
    Landy
    wrote on last edited by
    #1

    Hi guys,

    is there any good way to decode special character? such as "™".

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      What do you mean by decode ? What is the use case ?

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        What do you mean by decode, exactly? You wan to use it in your C++ file, or read from some input, or put on a QLabel? Or simply decompose (in that case, take a look at "QChar::decomposition()":http://qt-project.org/doc/qt-4.8/qchar.html#decomposition).

        (Z(:^

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Landy
          wrote on last edited by
          #4

          hmm, for example:
          there is a file named with “?”, maybe it's “?myfile.txt".
          now, i wanna open the file. of course, i get the file path of the file, and initialize a QFile with file path.
          the problem is that, the file path, the QString, can not be read correctly, since “?” can not be read, it will displayed as "?".
          i think it's cause by decoding.
          and this is what i mean.

          1 Reply Last reply
          0

          • Login

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