aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/logging.cpp')
-rw-r--r--src/zencore/logging.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/zencore/logging.cpp b/src/zencore/logging.cpp
index 828bea6ed..5ada0cac7 100644
--- a/src/zencore/logging.cpp
+++ b/src/zencore/logging.cpp
@@ -414,6 +414,13 @@ InitializeLogging()
{
ZEN_MEMSCOPE(ELLMTag::Logging);
+ EnableVTMode();
+
+#if ZEN_PLATFORM_WINDOWS
+ // Enable UTF-8 output so multi-byte characters render correctly via WriteFile
+ SetConsoleOutputCP(CP_UTF8);
+#endif
+
TheDefaultLogger = LoggerRef(*Registry::Instance().DefaultLoggerRaw());
g_LoggingInitialized = true;
}