From 5ed3db0a7ebe21b8adb6f9cda1e4a92b4f8e8fcb Mon Sep 17 00:00:00 2001 From: Eblo <7004497+Eblo@users.noreply.github.com> Date: Tue, 30 Sep 2025 22:00:30 -0400 Subject: [PATCH] Allow non-ASCII characters on Windows (#5741) --- soh/src/code/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soh/src/code/main.c b/soh/src/code/main.c index 0a255f48d..769ecc026 100644 --- a/soh/src/code/main.c +++ b/soh/src/code/main.c @@ -1,5 +1,6 @@ #ifdef _WIN32 #include +#include #endif #include "global.h" @@ -52,6 +53,8 @@ int SDL_main(int argc, char** argv) { #ifndef _DEBUG ShowWindow(GetConsoleWindow(), SW_HIDE); #endif + // Allow non-ascii characters for Windows + setlocale(LC_ALL, ".UTF8"); #else //_WIN32 int main(int argc, char** argv) {