Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt6 : Qt shall use a UTF-8 locale ("UTF-8") instead
Forum Updated to NodeBB v4.3 + New Features

Qt6 : Qt shall use a UTF-8 locale ("UTF-8") instead

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mpergand
    wrote on last edited by mpergand
    #1

    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 avail

    What should I do ?

    Qt 6.4.3 , MacOs 10.15 Catalina

    C 1 Reply Last reply
    0
    • M mpergand

      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 avail

      What should I do ?

      Qt 6.4.3 , MacOs 10.15 Catalina

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by ChrisW67
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved