diff --git a/.editorconfig b/.editorconfig index c7a5f17e..acd10aaf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,6 +5,7 @@ indent_style = space indent_size = 2 tab_width = 8 end_of_line = lf +charset = utf-8 spelling_language = en-US [*.md] diff --git a/CMakeLists.txt b/CMakeLists.txt index a1ee6fd5..bf5e8fd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,12 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set_property(GLOBAL PROPERTY USE_FOLDERS ON) +if(MSVC) + add_compile_options(/source-charset:UTF-8) +else() + add_compile_options(-finput-charset=UTF-8) +endif() + if(FORCE_COLORED_OUTPUT) if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24) set(CMAKE_COLOR_DIAGNOSTICS ON)