You are not logged in.

#1 2021-12-16 23:09:26

peonerovv
Member
Registered: 2021-08-11
Posts: 34

[SOLVED] St Swedish letters not displaying properly

Hi,

I'm using st as my terminal with dwm, but st seems to have problem with letters "äöå". They work just fine in the browser and the console, but when typing them is st they turn into a question mark symbol. They also do not display properly in the status bar. Any help would be appreciated.

Thanks.

Last edited by peonerovv (2021-12-18 10:33:53)

Offline

#2 2021-12-17 01:53:58

lmn
Member
Registered: 2021-05-09
Posts: 92
Website

Re: [SOLVED] St Swedish letters not displaying properly

Sounds to me that your font does not support those characters. You could try one of the monospace fonts listed on the wiki.

Offline

#3 2021-12-17 08:20:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,154

Re: [SOLVED] St Swedish letters not displaying properly

Few fonts don't support latin1 - what's the output of

localectl; locale; locale -a

?

Offline

#4 2021-12-17 23:23:24

peonerovv
Member
Registered: 2021-08-11
Posts: 34

Re: [SOLVED] St Swedish letters not displaying properly

lmn wrote:

Sounds to me that your font does not support those characters. You could try one of the monospace fonts listed on the wiki.

No, it does. It can display russian text for example. But I'm unable to type it

Last edited by peonerovv (2021-12-17 23:23:58)

Offline

#5 2021-12-17 23:28:58

peonerovv
Member
Registered: 2021-08-11
Posts: 34

Re: [SOLVED] St Swedish letters not displaying properly

seth wrote:

Few fonts don't support latin1 - what's the output of

localectl; locale; locale -a

?

System Locale: LANG=C
VC Keymap: sv-latin1
X11 Layout: se,ru
X11 Model: latitude
X11 Options: grp:win_space_toggle
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
...
LC_ALL=
C
POSIX
en_US
en_US.iso88591
en_US.utf8

Offline

#6 2021-12-17 23:31:58

peonerovv
Member
Registered: 2021-08-11
Posts: 34

Re: [SOLVED] St Swedish letters not displaying properly

I also can type both Russian letters and Swedish letters in alacritty for example, so I'm guessing this is just st's & dwm's thing. My current font in both config.h files is "Hack:pixelsize=20:antialias=true:autohitnt=true"

Offline

#7 2021-12-18 07:47:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,154

Re: [SOLVED] St Swedish letters not displaying properly

...

Please don't do that, https://bbs.archlinux.org/viewtopic.php?id=57855

However the cause is obvious - you're running the C locale and those glyphs are not covered by that.
Fix your locale settings, en_US.UTF-8 will do, https://wiki.archlinux.org/title/Locale … the_locale

Offline

#8 2021-12-18 10:33:28

peonerovv
Member
Registered: 2021-08-11
Posts: 34

Re: [SOLVED] St Swedish letters not displaying properly

Ok, I'll take a note on that.

Yes, this fixed the issue. I somehow forgot to set my locale during the install.

Offline

Board footer

Powered by FluxBB