jeudi 9 avril 2015

Qt convert unicode entities

In QT 5.4 and C++ I try to decode a string that has unicode entities.


I have a string: file\u00d6\u00c7\u015e\u0130\u011e\u00dc\u0130\u00e7\u00f6\u015fi\u011f\u00fc\u0131.txt


I want to convert it 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?


Aucun commentaire:

Enregistrer un commentaire