Qt6 : Qt shall use a UTF-8 locale ("UTF-8") instead
-
Hi all,
I have this message when compiling:
Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
reconfigure your locale. See the locale(1) manual for more information.I try
setlocale(LC_ALL, "en_US.UTF-8");
with no availWhat should I do ?
Qt 6.4.3 , MacOs 10.15 Catalina
-
Hi all,
I have this message when compiling:
Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
reconfigure your locale. See the locale(1) manual for more information.I try
setlocale(LC_ALL, "en_US.UTF-8");
with no availWhat should I do ?
Qt 6.4.3 , MacOs 10.15 Catalina
I have this message when compiling:
I suspect you have this message from your program, or a Qt-based IDE, when it is run.
What should I do ?
To the Qt program: nothing. The Qt program will use UTF-8 which is a compatible superset of US-ASCII, i.e a valid ASCII string is a valid UTF-8 string.
The message is telling that the operating system locale is set to US-ASCII. If you want to set that to UTF-8 then that is something outside of the Qt program.