Problem to Display japanese charanters inside source code and adding to combobox
In my Qt desktop application I want to add Japanese words in QStringList to fill my combobox. First of all it seem Qt Creator doesn't manage to save source code file in unicode format. This mean if I try to put into the code something like:
@ QString str=QObject::trUtf8("エレクトロニクス");@
and close and reopen the project instead of the japanese characters above I find something like:
@ QString str=QObject::trUtf8("????????");@
and also showing ???????? in combobox at runtime.
Please suggest me how I can manage Japanese word in my application in source code as well as at run time?
Thanks in Advance.
Are you sure Qt Creator is using correct encoding? I think Qt Creator defaults to to system encoding. Check "this":http://qt-project.org/doc/qtcreator-2.6/creator-editor-settings.html.