[Interest] QTextStream vs UTF-8 string literals

Bernhard Lindner private at bernhard-lindner.de
Sat Oct 29 15:11:10 CEST 2016


Please note this questions in StackExchange:

http://stackoverflow.com/q/40318671/1421332

It asks why operator<<(const char *string) expects latin-1 strings (especially 
considering that Qt source files shall be UTF-8 now).

Is that desired behavior?

Is there an easy way to stream a lot of UTF-8 string literals (in an UTF-8 
source code) without wrapping each literal in a QString()?

-- 
Regards, Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20161029/608cf05c/attachment.sig>


More information about the Interest mailing list