cmd:默认终端部分以UTF8显示。

This commit is contained in:
2025-11-09 15:31:59 +08:00
parent 2081c1cd2e
commit ff823d8e6d
3 changed files with 12 additions and 1 deletions

View File

@@ -4,10 +4,19 @@
#include <iostream>
#include <memory>
#if defined(_WIN32)
#include <windows.h>
#endif
#include "Console.h"
int main(int argc, char* argv[])
{
#if defined(_WIN32)
SetConsoleOutputCP(CP_UTF8);
#endif
auto ver = Util::GetVersion();
std::cout << "==============> " << ver.toStdString() << std::endl;