mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 05:49:53 +08:00
Set TextCodec to UTF8
For now QTextEdit seems handle the Chinese correctly. Signed-off-by: Le Tan <tamlokveer@gmail.com>
This commit is contained in:
parent
321289c8e0
commit
e1c2204733
5
main.cpp
5
main.cpp
@ -1,10 +1,15 @@
|
||||
#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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user