You are not logged in.

#1 2013-10-11 15:24:15

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Problems with Locale

Hello,

I having trouble with getting the right characters in my terminal (Termite).

When I open a terminal, the characters "æøå" is displayed as "?ae?".

If I open a termite session form within termite, the characters is displayed correctly.

In my /ect/locale.conf I have:
LANG="en_US.UTF-8"

And in ~/./config/locale.conf i have:
LANG="dk_DK.UTF-8"

I have tried read through the locale wiki entry, and search the forum for solutions,
but so far nothing have worked, and I don't really know here to go from here.

Offline

#2 2013-10-11 19:26:30

torors
Member
Registered: 2012-09-28
Posts: 107

Re: Problems with Locale

Try LANG=dk_DK.UTF-8 in  /ect/locale.conf . I am from Norway and have LANG=nb_NO.UTF-8 in  /ect/locale.conf. æøå is displayed right.

Offline

#3 2013-10-11 20:09:50

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

No luck. It still gives me "ae??"

Offline

#4 2013-10-11 22:02:34

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: Problems with Locale

What's the output of

locale -a

Offline

#5 2013-10-12 07:07:05

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

mariusmeyer wrote:

What's the output of

locale -a

[m_hyperbolic@archbox ~]$ locale -a
C
da_DK.utf8
en_DK.utf8
en_GB.utf8
POSIX

Offline

#6 2013-10-12 09:03:36

jackmeep123
Member
From: Germany
Registered: 2013-10-06
Posts: 13

Re: Problems with Locale

I had that Problem too !
Don't worry, its easy to solve wink.
First of all you should run this as root :

touch /usr/share/locale/locale.alias

after that (as root too):

locale-gen

That's it ! Have fun with your working locale!


Greetings Jack.

EDIT: Sorry, I was tired and posted a wrong command , now this should work smile.

Last edited by jackmeep123 (2013-10-12 09:10:17)

Offline

#7 2013-10-12 09:04:33

Jellicent
Member
From: Berlin
Registered: 2013-09-13
Posts: 189

Re: Problems with Locale

This might seem like a silly question, but are you sure your font supports those characters?

Offline

#8 2013-10-12 09:12:54

jackmeep123
Member
From: Germany
Registered: 2013-10-06
Posts: 13

Re: Problems with Locale

Jellicent wrote:

This might seem like a silly question, but are you sure your font supports those characters?

If not , he may have to use the default font.
But let's wait until he ran those two commands.
Thats what fixed it for me.

EDIT: Also , it could really be a Font Issue, as Jellicent stated!

Last edited by jackmeep123 (2013-10-12 09:23:25)

Offline

#9 2013-10-12 09:31:40

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

jackmeep123 wrote:

I had that Problem too !
Don't worry, its easy to solve wink.
First of all you should run this as root :

touch /usr/share/locale/locale.alias

after that (as root too):

locale-gen

That's it ! Have fun with your working locale!


Greetings Jack.

EDIT: Sorry, I was tired and posted a wrong command , now this should work smile.

No dice. Still "ae??"

Edit: I rebooted after the above commands.

Jellicent wrote:

This might seem like a silly question, but are you sure your font supports those characters?

I use the inconsolata font, and it does support "øåæ" (http://www.levien.com/type/myfonts/inconsolata.html)
But to be sure, I have also tired with terminus, and it dosen't help.

And since "øæå" is displayed fine if a open termite session from within termite, I know they font works.

Last edited by Mhyperbolic (2013-10-12 09:52:43)

Offline

#10 2013-10-12 12:40:41

jackmeep123
Member
From: Germany
Registered: 2013-10-06
Posts: 13

Re: Problems with Locale

I'm glad been able to help you ! smile

If your problem is solved, dont forget to put the [SOLVED] tag on it.

You do it like this:

Editing the first post, putting [SOLVED] in front of the thread name.

(I assume after the reboot it worked, did it ?)

Greetings, Jack.

Last edited by jackmeep123 (2013-10-12 12:42:04)

Offline

#11 2013-10-12 17:56:16

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

jackmeep123 wrote:

I'm glad been able to help you ! smile

If your problem is solved, dont forget to put the [SOLVED] tag on it.

You do it like this:

Editing the first post, putting [SOLVED] in front of the thread name.

(I assume after the reboot it worked, did it ?)

Greetings, Jack.

No you misunderstood me. After the reboot it still does not work hmm

Offline

#12 2013-10-13 08:17:17

light
Member
Registered: 2009-12-20
Posts: 8

Re: Problems with Locale

Hi.

What does /etc/vconsole.conf say?

Cause I had this problem before and the problem was that it changed my keyboard layout to english instead of swedish.

You can view the current keyboard config by typing: localectl status

It should say something like this:

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

You can try if KEYMAP=dk-latin1 in /etc/vconsole.conf solves the problem.

You can read more here: https://wiki.archlinux.org/index.php/Ke … in_Console

Offline

#13 2013-10-13 08:39:07

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

light wrote:

Hi.

What does /etc/vconsole.conf say?

Cause I had this problem before and the problem was that it changed my keyboard layout to english instead of swedish.

You can view the current keyboard config by typing: localectl status

It should say something like this:

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

You can try if KEYMAP=dk-latin1 in /etc/vconsole.conf solves the problem.

You can read more here: https://wiki.archlinux.org/index.php/Ke … in_Console

Those settings should be correct:

[m_hyperbolic@archbox ~]$ localectl status
   System Locale: LANG=dk_DK.UTF-8
       VC Keymap: dk-latin1
      X11 Layout: n/a
[m_hyperbolic@archbox ~]$ cat /etc/vconsole.conf 
KEYMAP=dk-latin1
FONT=Lat2-Terminus16

Offline

#14 2013-10-13 09:57:07

torors
Member
Registered: 2012-09-28
Posts: 107

Re: Problems with Locale

You can try FONT=lat0-16 in /etc/vconsole.conf . Works in norwegian with æøå.

Offline

#15 2013-10-13 10:45:35

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

torors wrote:

You can try FONT=lat0-16 in /etc/vconsole.conf . Works in norwegian with æøå.

That didn't do it. Still does not work hmm

Offline

#16 2013-10-13 11:45:14

Mhyperbolic
Member
Registered: 2012-11-18
Posts: 30

Re: Problems with Locale

Maybe I is important that my login manager (SLiM) has a us-keyboard layout despite the above settings.

Offline

#17 2013-10-13 12:33:06

Daerandin
Member
From: Norway
Registered: 2013-05-07
Posts: 281
Website

Re: Problems with Locale

How have you configured your keyboard layout for X? If you have only specified keyboard layout for your specific desktop environment, it might not apply to certain things like your login manager, which does not load your DE settings until you have actually logged in. Otherwise X will use the default settings. You have a couple of options for setting system wide keyboard layout for X. I would suggest you try this if you have not done it as it may solve your problem.

This part of the wiki may prove useful. I personally use a custom configuration file, but you can also use localectl as mentioned below the section I have linked to:

https://wiki.archlinux.org/index.php/Ke … tion_files

You can give this a try and see if it solves your problem.

Offline

#18 2013-10-13 15:41:53

jackmeep123
Member
From: Germany
Registered: 2013-10-06
Posts: 13

Re: Problems with Locale

To be honest, i have no more ideas except the commands i posted, but since they didn't work...
Sorry! I hope you will solve your problem soon. I will also look after a solution , will post it if i find one! wink

Greetings, Jack.

Offline

Board footer

Powered by FluxBB