diff --git a/meson.build b/meson.build
index 7f7efa43b3..b1d2a41931 100644
--- a/meson.build
+++ b/meson.build
@@ -50,6 +50,7 @@ if not meson.is_subproject() and cc.get_id() == 'msvc'
       '/w14062', # enumerator 'identifier' in switch of enum 'enumeration' is not handled
       '/w14101', # 'identifier' : unreferenced local variable
       '/w14189', # 'identifier' : local variable is initialized but not referenced
+      cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
       language: 'c')
 endif