vnote/main.cpp
Le Tan e1c2204733 Set TextCodec to UTF8
For now QTextEdit seems handle the Chinese correctly.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
2016-10-10 17:04:27 +08:00

18 lines
328 B
C++

#include "vmainwindow.h"
#include <QApplication>
#include <QTextCodec>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QTextCodec *codec = QTextCodec::codecForName("UTF8");
if (codec) {
QTextCodec::setCodecForLocale(codec);
}
VMainWindow w;
w.show();
return app.exec();
}