From bb6d1c634834d6262d8daee6a162ce53311c976f Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 10 Feb 2026 08:27:05 +0100 Subject: [PATCH] Set Windows console code page to UTF-8 Refs #6663 comment Suggested-by: Simon Chan <1330321+yume-chan@users.noreply.github.com> --- app/src/util/log.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/util/log.c b/app/src/util/log.c index c583b8fb..470f1e67 100644 --- a/app/src/util/log.c +++ b/app/src/util/log.c @@ -151,6 +151,10 @@ sc_sdl_log_print(void *userdata, int category, SDL_LogPriority priority, void sc_log_configure(void) { +#ifdef _WIN32 + SetConsoleOutputCP(CP_UTF8); +#endif + SDL_SetLogOutputFunction(sc_sdl_log_print, NULL); // Redirect FFmpeg logs to SDL logs av_log_set_callback(sc_av_log_callback);