How to compile utf16 source file?
Qt Creator and other tools
3
Posts
2
Posters
1.1k
Views
1
Watching
-
Qt 5 expects your source code to be encoded in UTF-8.
In Qt 4, you can use "setCodecForCStrings":http://qt-project.org/doc/qt-4.8/qtextcodec.html#setCodecForCStrings and setCodecForLocale (that method is also available in Qt 5).
Apart from Qt, you may also need to make your compiler aware of the unusual encoding.