MinGW編譯器中文顯示正常: QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決 使用VS2017編譯器中文亂碼: QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決 解決辦法: QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決 QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決 在頭檔案裡添加: #pragma execution_character_set("utf-8") QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決 解決後,VS2017編譯器編譯運作效果: QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決 MinGw編譯器編譯運作效果: QT軟體開發:QtCreator使用VS2017編譯器中文亂碼解決