In QT 5.4 and C++ I try to decode a string that has unicode entities.
I have this QString:
QString string = "file\u00d6\u00c7\u015e\u0130\u011e\u00dc\u0130\u00e7\u00f6\u015fi\u011f\u00fc\u0131.txt";
I want to convert this string to this: fileÖÇŞİĞÜİçöşiğüı.txt
I tried QString
's toUtf8
and fromUtf8
methods. Also tried to decode it character by character.
Is there a way to convert it by using Qt?
char
is 8 bits. You'll probably need a wide literal:L"file\u00d6\u00c7\u015e\u0130..."
– Treytri