Hello,
I'm trying to put some text to QMessageBox:
Qt Code:
To copy to clipboard, switch view to plain text mode
after compiling i've got:
1.png
Hello,
I'm trying to put some text to QMessageBox:
Qt Code:
To copy to clipboard, switch view to plain text mode
after compiling i've got:
1.png
Is your source string correctly encoded in UTF-8?
Check that you are not using a local encoding, like latin2 or some weird Windows codec.
Cheers,
_
Hmm, strange.
Can you try
i.e. explicitly convert from UTF-8 and also writing it to the application output?Qt Code:
qDebug() << message;To copy to clipboard, switch view to plain text mode
Cheers,
_
mirek_zaklosa (12th June 2019)
As always - the best way is to not anything else than ascii for strings in the source code and do a proper translation with linguist.
mirek_zaklosa (12th June 2019)
Regardless of what is in your source code, it seems that it is being inserted into the compiled binary encoded as Windows-1250 that is subsequently being interpreted as Windows-1252:
Qt Code:
// What should be there B ł ą d ć U+0042 U+0142 U+0105 U+0064 U+0107 0x42 0xC5 0x82 0xC4 0x85 0x64 0xC3 0xA6 encoded with UTF-8 // What seems to be there in the binary 0x42 0xB3 0xB9 0x64 0xE6 encoded with Windows-1250 B ³ ¹ d æ if interpreted as Windows 1252To copy to clipboard, switch view to plain text mode
Last edited by ChrisW67; 10th June 2019 at 13:13. Reason: Forum mangles Polish chars :(
mirek_zaklosa (12th June 2019)
Bookmarks