Decode special characters in Qt
is there any good way to decode special character? such as "™".
What do you mean by decode ? What is the use case ?
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).
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.