Re: UTF-8 in window titles
Bernd Eggink <[email protected]>
| Newsgroups | gmane.compw.window-managers.windowmaker.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 14, 2005 at 02:03:43AM +0200, Dan Pascu wrote:
> On Monday 14 March 2005 00:27, Bernd Eggink wrote:
> > On Sun, Mar 13, 2005 at 08:47:10PM +0200, Dan Pascu wrote:
> > > I ran WPrefs with the german language and it shows chars with umlauts
> > > correctly in both the window-list menu and the window titlebar
> > >
> > > Maybe the encoding you use for the text in the titlebar is not utf-8
> >
> > Hm. I use utf-8 throughout my system (LANG=de_DE.UTF-8). You are
> > right, umlauts appear correctly in the applications menu title, but
> > only there, not in the title bar of a normal window (like xterm). For
> > example, starting xterm with the option "-T bäh" produces a title bar
> > with a single "b". The same happens when a Java program calls
> > frame.setTitle("bäh").
> >
> > Other window managers (fvwm and openbox) display titles correctly on
> > the same system. So I guess it must be a WindowMaker issue.
>
> it's not. the title must be encoded in utf-8. if it's not displaying properly
> it's not utf-8 encoded. what you use for LANG is irrelevant, what is relevant
> is what encoding that this ä gets when you input it from the kbd. I can bet
> it gets encoded in iso-8859-1 (i.e. your keyboard doesn't produce utf-8
> encoded chars).
>
> If the ä character in this email was introduced the same way as in the titles
> of your windows than that's the case.
I dont't know what the mail program makes of it, but when I say
echo 'ä' > t and then hexdump the file t, the output is "a4c3 000a",
which IMO proves that the proper utf sequence has been produced. And
if my keyboard produced latin-1 encoded chars, wouldn't menu entries
be garbled, too?
> In this email the character ä has the hex code 0xE4, which is the iso-8859-1
> encoding. The utf-8 encoding for ä is: 0xC3 0xA4 (2 bytes)
>
> Try this, which will produce the utf-8 char for ä even if your kbd doesn't
> produce utf-8 directly:
>
> xterm -T `echo -e "b\xC3\xA4h"`
Sorry, this doesn't change anything.
Bernd
--
Bernd Eggink
Regionales Rechenzentrum der Uni Hamburg
[email protected]
http://www.rrz.uni-hamburg.de/RRZ/B.Eggink/
_______________________________________________
INFO: https://windowmaker.org/lists/listinfo/wm-user
ARCHIVE: https://windowmaker.org/lists/archive/wm-user/
FAQ: http://windowmaker.org/faq.html