diff --git a/binding.gyp b/binding.gyp index e105085..681d68c 100644 --- a/binding.gyp +++ b/binding.gyp @@ -13,7 +13,14 @@ ], "cflags_c": [ "-std=c99", - ] + ], + "msvs_settings": { + "VCCLCompilerTool": { + "AdditionalOptions": [ + '-utf-8' + ], + }, + } } ] } diff --git a/bindings/rust/build.rs b/bindings/rust/build.rs index f7aaf16..41d4559 100644 --- a/bindings/rust/build.rs +++ b/bindings/rust/build.rs @@ -6,7 +6,8 @@ fn main() { c_config .flag_if_supported("-Wno-unused-parameter") .flag_if_supported("-Wno-unused-but-set-variable") - .flag_if_supported("-Wno-trigraphs"); + .flag_if_supported("-Wno-trigraphs") + .flag_if_supported("-utf-8"); let parser_path = src_dir.join("parser.c"); c_config.file(&parser_path);