diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 0118b5bae20..15e8f33eaef 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -195,7 +195,7 @@ def configure_msvc(env, manual_msvc_config): ## Compile/link flags - env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo']) + env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo', '/utf-8']) env.AppendUnique(CXXFLAGS=['/TP']) # assume all sources are C++ if manual_msvc_config: # should be automatic if SCons found it if os.getenv("WindowsSdkDir") is not None: