I want to encode character like "é" and "à " without using the code of the character every time.
I tried with tr() for example tr("Propriété") but is not worked.
Im using Visual studio 2012 and Qt5.
I want to encode character like "é" and "à " without using the code of the character every time.
I tried with tr() for example tr("Propriété") but is not worked.
Im using Visual studio 2012 and Qt5.
Try to use : _fromUtf8 = QtCore.QString.fromUtf8
and then my_str = _fromUtf8(my_str)
Thanx for your reply but i want a generic method to do this instead of changing every QString in my code
Qt5 assumes that your files are encoded in UTF-8.
http://www.macieira.org/blog/2012/05...ring-wants-it/
Just change your file encoding to UTF-8
Cheers,
_
Bookmarks