You are not logged in.

#1 2017-08-19 10:04:36

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

[SOLVED] System-wide character encoding issue

Hello,

I installed Arch on my home and office computers a few days ago and am facing a character encoding issue on both. I am using two different physical keyboard layouts, French and German with following issues:

  • German characters can be entered withtout any problem with the German keyboard layout, but when I try to enter French characters I only get replacement characters (question mark in a square)  for non-ASCII characters

  • French characters can be entered withtout any problem with the French keyboard layout, but when I try to enter German characters I only get replacement characters (question mark in a square)  for non-ASCII characters

In addition to that, I can not access files and folders created under previous Arch installs which contain non-ASCII characters in their path or filename like é,è,ß and so on.

System information:
Up to date Arch Linux using the KDE Plasma desktop environment.

locale

LANG=fr_FR.UTF-8
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATION=
LC_ALL=

locale -a

C
fr_FR.utf8
POSIX

/etc/locale.gen

...
#fr_CH.UTF-8 UTF-8
#fr_CH ISO-8859-1
fr_FR.UTF-8 UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
...

/etc/locale.conf

LANG=fr_FR.UTF-8

I am running out of ideas on how to solve this issue.

Johan

Last edited by johan.cb (2017-08-31 19:50:23)

Offline

#2 2017-08-19 10:35:28

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#3 2017-08-19 12:59:40

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Is there any solution/workaround to this bug? Or do I have to wait for the next systemd release?

I am wondering why there aren't more people affected by the bug.

Offline

#4 2017-08-19 13:09:09

loqs
Member
Registered: 2014-03-06
Posts: 17,391

Re: [SOLVED] System-wide character encoding issue

Offline

#5 2017-08-19 13:15:43

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

Or simply set/override all variables with the exact configuration you want


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#6 2017-08-20 11:40:26

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

My locale now looks like this:

LANG=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATION=
LC_ALL=

But I still have the encoding issue.

Offline

#7 2017-08-20 15:03:37

loqs
Member
Registered: 2014-03-06
Posts: 17,391

Re: [SOLVED] System-wide character encoding issue

If you are going to only set one of the LC vars set LC_ALL.

Offline

#8 2017-08-20 15:07:27

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

I just tried that, LC_ALL shows as

LC_ALL=fr_FR.UTF-8

but I am still affected by the issue.

I noticed that I am not experiencing this bug under LibreOffice or Firefox.

Last edited by johan.cb (2017-08-20 15:08:25)

Offline

#9 2017-08-20 15:15:12

loqs
Member
Registered: 2014-03-06
Posts: 17,391

Re: [SOLVED] System-wide character encoding issue

You are setting the vars in /etc/locale.conf then rebooted or at least switched to a new tty?
Also how do you start X/Wayland?

Last edited by loqs (2017-08-20 15:17:16)

Offline

#10 2017-08-20 15:16:46

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Yes, exactly.

My actual locale.conf after reboot:

LANG=fr_FR.UTF-8
LC_CTYPE=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_COLLATE=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_MESSAGES=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=

Offline

#11 2017-08-20 15:23:25

loqs
Member
Registered: 2014-03-06
Posts: 17,391

Re: [SOLVED] System-wide character encoding issue

When you say you can not access files and folders created under previous Arch installs which contain non-ASCII characters in their path or filename like é,è,ß and so on
is that because you can not type the path or the path is not displayed correctly?  In what program is this?
Edit:
spelling correctly not correctily
Edit2:
@ugjka
Are you sure this is https://bugs.archlinux.org/task/54988?

Last edited by loqs (2017-08-20 15:31:59)

Offline

#12 2017-08-20 15:40:09

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Examples:
-when I donwload a file into my folder /home/johan/Téléchargements/ using Firefox and try to open it, Firefox tells me that the downloaded file does not exist. If I download it, or move it, to a folder named /home/johan/Downloads it works
-using the Dolphin file manager I can not create a new folder using é,è,ß, I only get question marks
-using the Konsole terminal emulator  I can list folder with non ASCII characters which display fine, bud can not

cd

to the folder Téléchargements, I get the ? character instead.

Maybe a screenshot is worth more than a thousand words:

http://imgur.com/a/RJMI1

Offline

#13 2017-08-20 15:49:43

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

What's curious is that I can write the character "é" with a French keyboard but not with the german or the american anymore. Same for german characters that can be entered with the german keyboard but not the french anymore.

Offline

#14 2017-08-20 16:41:06

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

Guessing here, try also uncomenting fr_FR ISO-8859-1  fr_FR@euro ISO-8859-15  in your locale.gen and run locale-gen


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#15 2017-08-20 16:45:06

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Helo ugjka,

it did not work.

Offline

#16 2017-08-20 16:53:09

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

post the output of "env", redact anything sensitive if you have something


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#17 2017-08-20 16:56:26

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

env:

johan@Johan-PC : env
GS_LIB=/home/johan/.fonts
KDE_FULL_SESSION=true
LC_MEASUREMENT=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LANG=fr_FR.UTF-8
PROFILEHOME=
DISPLAY=:0
SHELL_SESSION_ID=608a2e88948a41a59f6c46a411b8b0e2
INVOCATION_ID=10999ca115a54bd1a8ef402c3eb83482
COLORTERM=truecolor
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_VTNR=1
QT_QUICK_CONTROLS_STYLE=org.kde.desktop
LC_NAME=fr_FR.UTF-8
XDG_SESSION_ID=c1
USER=johan
LC_COLLATE=fr_FR.UTF-8
PWD=/home/johan
HOME=/home/johan
LC_CTYPE=fr_FR.UTF-8
JOURNAL_STREAM=9:16684
XCURSOR_SIZE=0
XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share
KONSOLE_DBUS_SESSION=/Sessions/1
LC_ADDRESS=fr_FR.UTF-8
LC_NUMERIC=fr_FR.UTF-8
KONSOLE_DBUS_WINDOW=/Windows/1
MAIL=/var/spool/mail/johan
WINDOWPATH=1
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.45
LC_MESSAGES=fr_FR.UTF-8
XCURSOR_THEME=breeze_cursors
XDG_CURRENT_DESKTOP=KDE
KONSOLE_PROFILE_NAME=Nouveau profil
XDG_SEAT=seat0
SHLVL=4
COLORFGBG=15;0                                                                                                                                   
LANGUAGE=                                                                                                                                         
WINDOWID=58720262                                                                                                                                 
LC_TELEPHONE=fr_FR.UTF-8
LOGNAME=johan
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/johan/.Xauthority
QT_AUTO_SCREEN_SCALE_FACTOR=0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
LC_IDENTIFICATION=fr_FR.UTF-8
KDE_SESSION_UID=1000
PS1=\[\e[32m\]\u\[\e[m\]@\[\e[31m\]\h\[\e[m\] :
KDE_SESSION_VERSION=5
SESSION_MANAGER=local/Johan-PC:@/tmp/.ICE-unix/548,unix/Johan-PC:/tmp/.ICE-unix/548
LC_TIME=fr_FR.UTF-8
_=/usr/bin/env

Offline

#18 2017-08-20 16:58:14

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

Ok try setting LANGUAGE= to fr_FR.UTF-8 too in your locale.conf


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#19 2017-08-20 17:06:24

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Still no difference.

Offline

#20 2017-08-20 17:08:04

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

I am wondering if this is not KDE Plasma/Qt related, all GTK applications seem to work properly: Firefox, LibreOffice, Gimp

Offline

#21 2017-08-20 17:09:01

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

Ok just for sanity what does localectl say, you have something weird going on


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#22 2017-08-20 17:09:42

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Output of localectl:

System Locale: LANG=fr_FR.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

Offline

#23 2017-08-20 17:10:13

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

johan.cb wrote:

I am wondering if this is not KDE Plasma/Qt related, all GTK applications seem to work properly: Firefox, LibreOffice, Gimp

Check KDE's Regional Settings in the kde's settings manager


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#24 2017-08-20 17:11:37

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,813
Website

Re: [SOLVED] System-wide character encoding issue

johan.cb wrote:

Output of localectl:

System Locale: LANG=fr_FR.UTF-8
       VC Keymap: n/a
      X11 Layout: n/a

That could be the problem, you need to have all those others there too

mine looks like this

[ugjka@ArchT bin]$ localectl 
   System Locale: LANG=en_GB.UTF-8
                  LC_CTYPE=lv_LV.UTF-8
                  LC_NUMERIC=lv_LV.UTF-8
                  LC_TIME=lv_LV.UTF-8
                  LC_COLLATE=lv_LV.UTF-8
                  LC_MONETARY=lv_LV.UTF-8
                  LC_MESSAGES=lv_LV.UTF-8
                  LC_PAPER=lv_LV.UTF-8
                  LC_NAME=lv_LV.UTF-8
                  LC_ADDRESS=lv_LV.UTF-8
                  LC_TELEPHONE=lv_LV.UTF-8
                  LC_MEASUREMENT=lv_LV.UTF-8
                  LC_IDENTIFICATION=lv_LV.UTF-8
       VC Keymap: dvorak
      X11 Layout: us,lv,lv,ru
     X11 Variant: dvorak,minuskeydvorak,apostrophe,phonetic
     X11 Options: grp:alt_shift_toggle

https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#25 2017-08-20 17:17:44

johan.cb
Member
From: Leipzig, Germany
Registered: 2016-07-10
Posts: 62

Re: [SOLVED] System-wide character encoding issue

Do you know how to do this? I already appended fr_FR.UTF-8 to all the variables in locale.conf file and ran locale-gen. But localectl shows non of them.

Offline

Board footer

Powered by FluxBB