Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 04 July 2024, 15:54:54 How do I fix?The fixes I find assume systemd
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #1 – 04 July 2024, 16:39:09 A bit of context might help. 1 Likes
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #2 – 04 July 2024, 16:45:08 when running octopi updatesudo /usr/lib/octopi/octphelper -tsDetected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.If this causes problems, reconfigure your locale. See the locale(1) manualWhen running...lxqt-openssh-askpass Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.If this causes problems, reconfigure your locale. See the locale(1) manualfor more information.Is that enough context?
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #3 – 04 July 2024, 18:50:45 Quote from: n00b – on 04 July 2024, 16:45:08Is that enough context?N
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #4 – 04 July 2024, 20:08:34 Check /etc/locale.gen file:Quote# Configuration file for locale-gen## lists of locales that are to be generated by the locale-gen command.## Each line is of the form:#[...]## A list of supported locales is given in /usr/share/i18n/SUPPORTED# and is included in this file. Uncomment the needed locales below.Do you know to how uncomment them right?
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #5 – 05 July 2024, 16:25:41 Quote from: gripped – on 04 July 2024, 16:39:09A bit of context might help.RTFM:https://www.iana.org/assignments/character-sets/character-sets.xhtmlhttps://dcodesnippet.com/a-utf-8-locale-is-required-got-ansi_x3-4-1968/Notice:UTF-8 encodes characters with a variable number of bytes. A Unicode character is encoded in 1 to 4 bytes. The code points 0 to 127, which correspond to the ASCII character set, are encoded in one byte, whereby the most significant bit is always 0. The eighth bit can be used to introduce a longer Unicode character that extends over 2, 3 or 4 bytes. This is the most efficient use of memory space for fonts based on the Latin alphabet.Apart from that, how about: Code: [Select]locale -a
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #6 – 10 July 2024, 17:58:16 Quote from: kiblaster – on 04 July 2024, 20:08:34Check /etc/locale.gen file:Do you know to how uncomment them right?/etc/locale.gen:[...][/quote]in /etc/locale.gen:en_US.UTF-8 UTF-8was uncommented alreadyQuote from: lq – on 05 July 2024, 16:25:41Quote from: gripped – on 04 July 2024, 16:39:09A bit of context might help.RTFM:https://www.iana.org/assignments/character-sets/character-sets.xhtmlhttps://dcodesnippet.com/a-utf-8-locale-is-required-got-ansi_x3-4-1968/Notice:UTF-8 encodes characters with a variable number of bytes. A Unicode character is encoded in 1 to 4 bytes. The code points 0 to 127, which correspond to the ASCII character set, are encoded in one byte, whereby the most significant bit is always 0. The eighth bit can be used to introduce a longer Unicode character that extends over 2, 3 or 4 bytes. This is the most efficient use of memory space for fonts based on the Latin alphabet.Apart from that, how about: Code: [Select]locale -alocale -a:CC.utf8POSIXen_US.utf8 Last Edit: 10 July 2024, 18:11:13 by n00b
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #7 – 22 July 2024, 18:39:22 any thoughts?
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #8 – 22 July 2024, 20:02:16 Check your $LANG.Code: [Select]echo $LANG
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #9 – 23 July 2024, 22:31:19 echo $LANGen_US.UTF-8
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #10 – 24 July 2024, 09:26:05 And the output of Code: [Select]locale?
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #11 – 24 July 2024, 22:07:43 localeLANG=en_US.UTF-8LC_CTYPE="C"LC_NUMERIC="C"LC_TIME="C"LC_COLLATE="C"LC_MONETARY="C"LC_MESSAGES="C"LC_PAPER="C"LC_NAME="C"LC_ADDRESS="C"LC_TELEPHONE="C"LC_MEASUREMENT="C"LC_IDENTIFICATION="C"LC_ALL=C
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #12 – 25 July 2024, 10:07:27 I guess that's the problem. Check your /etc/locale.conf.https://wiki.archlinux.org/title/Locale#Variables
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #13 – 25 July 2024, 17:47:43 /etc/locale.confLANG=en_US.UTF-8LC_ADDRESS=en_US.UTF-8LC_IDENTIFICATION=en_US.UTF-8LC_MEASUREMENT=en_US.UTF-8LC_MONETARY=en_US.UTF-8LC_NAME=en_US.UTF-8LC_NUMERIC=en_US.UTF-8LC_PAPER=en_US.UTF-8LC_TELEPHONE=en_US.UTF-8LC_TIME=en_US.UTF-8
Re: Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8 Reply #14 – 25 July 2024, 18:07:11 Something is redefining these variables. You should find out what. Check your startup scripts, services, shell init files and so on.https://wiki.archlinux.org/title/Environment_variables#Defining_variables