Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Environment:
I am using Ubuntu 11.10 with wmii 3.9 as GUI and uxterm as terminal with bash as shell. The hardware is a Lenovo ThinkPad W500 with a Swissgerman keyboard layout (thus I need umlauts). I am using ibus for Japansese input.

Symthoms:
When I type keys/chars like ~,^ in terminal nothing happens. If I press ö '(arg: 6)' appears, with ä nothing happens, with ü sometimes a command from the history appears.
It is the same behaviour in all terminals I tested so far (gnome-terminal, xfce4-terminal, xterm). It works as desired in other X applications like chromium-browser, skype or texteditors.

Additional information:

> locale
LANG=de_CH.UTF-8
LANGUAGE=en_US:en
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE=en_US.UTF-8
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=

> setxkbmap -print
xkb_keymap {
        xkb_keycodes  { include "evdev+aliases(qwerty)" };
        xkb_types     { include "complete"      };
        xkb_compat    { include "complete"      };
        xkb_symbols   { include "pc+ch+inet(evdev)+terminate(ctrl_alt_bksp)"    };
        xkb_geometry  { include "pc(pc105)"     };
};
share|improve this question

1 Answer 1

up vote 6 down vote accepted

I was having a similar problem when connecting via ssh to Mac OS X using a terminal emulator. Although I'd set LANG to de_DE.UTF-8 I couldn't type in any characters with umlauts.

The fix I found was to create/edit ~/.inputrc (or /etc/inputrc) with the following lines:-

set input-meta on
set output-meta on
set convert-meta off

Now I can type umlauts. I believe this applies to xterms in general.

share|improve this answer
    
Thank you, this fixes the umlaut problem! But I am still not able to type characters like ~, ^ or ¨. –  jonas Apr 15 '12 at 15:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.