Skip to content

Display and control your Android device

Set Windows console code page to UTF-8

Romain Vimontbb6d1c634834
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);