Skip to content

Commit

Permalink
Set console to UTF8
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirius902 committed May 5, 2022
1 parent 88b6321 commit 5b5a4f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main_dll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ DWORD WINAPI entry(LPVOID lpParameter) {

if (!scriptPaths.empty()) {
AllocConsole();
SetConsoleOutputCP(CP_UTF8);
FILE* f;
freopen_s(&f, "CONOUT$", "w", stdout);

Expand Down

0 comments on commit 5b5a4f4

Please sign in to comment.