[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to see accented characters in gnome-terminal?



On Sun, Nov 10, 2002 at 12:56:34PM -0500, Steve M. Robbins wrote:
> 
> I have a tiny file with four ISO-8859-1 characters in it: "été\n".
> (In case this email gets mangled, that is: e/acute-accent, t,
> e/acute-accent, newline).
> 
> On the linux console, "cat" correctly shows the file.
> 
> Using xterm, "cat" correctly shows the file.
> 
> Using gnome-terminal, a blank line is output.  The system is an
> up-to-date sid system, with gnome-terminal version 2.1.0-2.

The first question is whether you're using VTE or Zvt (ldd
/usr/bin/gnome-terminal)

> What do I need to do to get accented characters to show up?
> I thought I might need to choose a font with iso-8859-1 encoding,
> but the font selection window shows only "Family", "Style"
> and "Size" -- nothing about encoding.

Bundling font and encoding together is one of the busted crackmonkey
features of classic X fonts fixed with fontconfig/Xft2. ;-)

If you get gnome-terminal latest tarball (there's one past 2.1.0 I
think), and build with VTE, then there's a Terminal->Character Coding
menu where you can change what encoding it uses to interpret data
printed to the terminal. Basically identical to how Mozilla handles
encoding.

With Zvt, AFAIK the terminal is just totally broken with anything
other than ASCII.

With VTE but without the Character Coding menu, you will have to
convert the file to your locale encoding, I believe.

Havoc



Reply to: