[Qt-creator] UTF-8 Strings in QtCreator source code

Hunger Tobias Tobias.Hunger at theqtcompany.com
Mon Sep 7 11:49:06 CEST 2015


> C++11 introduced new UTF-8 string constans, so it should be possible to
> write the following:

> QStringLiteral(u8"This is a Unicode Character: \u2018.")

> and all C++11 compiler should compile it without warnings. Right?

> Shall we change the coding style and allow the new UTF-8 string
> literals?

I rarely use windows, but considering that all Qt 5 code needs to be utf8 encoded anyway, I am a bit surprised that special markup of charcater constants as utf8 are required.

Best Regards,
Tobias

_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator



More information about the Qt-creator mailing list