From eb825e03a15eace4d109ce8a642ba0dbcd3de9e5 Mon Sep 17 00:00:00 2001 From: Eblo <7004497+Eblo@users.noreply.github.com> Date: Mon, 11 Aug 2025 09:40:06 -0400 Subject: [PATCH] Allow non-ASCII characters on Windows --- 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) {