From 50bb5f8282d3295f9891b83126526474235d0dec Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Thu, 25 Aug 2022 10:53:33 +0800 Subject: MSVC: Set default code page to UTF-8 for resource compiler Add "/c65001" to explicitly set the code page to UTF-8 for the resource compiler, otherwise the resource compiler may pick up the local code page instead. Already tested locally, most Qt repos build without any problem, only very little repos are untested due to my local environment can't build them. Change-Id: I7e20f936d6af1fbb90b5c20980190b727c9021de Reviewed-by: Oliver Wolff --- src/corelib/Qt6CoreMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake index d9d795331f..6d8c858ea8 100644 --- a/src/corelib/Qt6CoreMacros.cmake +++ b/src/corelib/Qt6CoreMacros.cmake @@ -1808,7 +1808,7 @@ function(_qt_internal_generate_win32_rc_file target) endif() if(MSVC) - set(extra_rc_flags "/nologo") + set(extra_rc_flags "/c65001 /nologo") else() set(extra_rc_flags) endif() -- cgit v1.2.3