You are not logged in.

#1 2015-11-08 20:18:14

zenolijo
Member
Registered: 2013-03-19
Posts: 36

[SOLVED] Swedish characters ÅÄÖ not working in urxvt

So i reinstalled arch a few days ago because my root HDD crashed.

Did a fresh install and got everything working except for that the ÅÄÖ keys which do not work in urxvt.
They work fine in the getty/VT and all other X applications, but not in urxvt. I use zsh, but it doesn't work in bash neither.
It worked fine on my old install, and as far as i know the only thing i configured was /etc/locale.gen, locale-gen,  /etc/vconsole.conf as well as setxkbmap, but there's apparently something that i'm missing.

Output of "locale"

LANG=C
LC_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=

Output of "locale -a"

C
POSIX
en_US.utf8
sv_SE.utf8

Last edited by zenolijo (2015-11-08 23:26:26)

Offline

#2 2015-11-08 20:26:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Swedish characters ÅÄÖ not working in urxvt


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-11-08 20:33:25

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [SOLVED] Swedish characters ÅÄÖ not working in urxvt

For international character, the LC_CTYPE locale must be set to an UTF8 locale (or some other locales that supports the characters, but this is deprecated, use UTF8). For example export LC_CTYPE=sv_SE.utf8.

Last edited by olive (2015-11-08 20:33:44)

Offline

#4 2015-11-08 23:26:08

zenolijo
Member
Registered: 2013-03-19
Posts: 36

Re: [SOLVED] Swedish characters ÅÄÖ not working in urxvt

olive wrote:

For international character, the LC_CTYPE locale must be set to an UTF8 locale (or some other locales that supports the characters, but this is deprecated, use UTF8). For example export LC_CTYPE=sv_SE.utf8.

Thanks alot, first tried with just exporting it to see if it worked and it did. Added it to /etc/locale.conf and rebooted and now works as expected.

LC_CTYPE was only mentioned there but was never described what it actually does, should probably be added.

I found multiple forum posts with similar issues about this in both english and swedish, so that could possibly clear it up for more than just me.

Offline

Board footer

Powered by FluxBB