Re: utf-8 and gnuplot
- To: email@example.com
- Subject: Re: utf-8 and gnuplot
- From: "Jakson A. Aquino" <firstname.lastname@example.org>
- Date: Sun, 2 Apr 2006 22:25:24 -0300
- Message-id: <20060403012524.GA18967@localhost.localdomain>
- Mail-followup-to: email@example.com
- In-reply-to: <20060402211604.GB8334@don.localnet>
- References: <20060401115233.GA2364@localhost.localdomain> <20060402211604.GB8334@don.localnet>
On Sun, Apr 02, 2006 at 05:16:04PM -0400, Bill Marcum wrote:
> On Sat, Apr 01, 2006 at 08:52:33AM -0300, Jakson A. Aquino wrote:
> > Hi,
> > I would like to use gnuplot with my locale environment set
> > to UTF-8. However, when the gnuplot terminal is set to x11,
> > the utf-8 strings are interpreted as iso-8859-1. If the
> > gnuplot terminal is set to png, the strings are drawn as if
> > they were iso-8859-2. I filled a bug report to gnuplot, but
> > the developer told me that gnuplot has no problem and that I
> > have to choose an utf-8 font:
> > http://sourceforge.net/tracker/index.php?func=detail&aid=1458525&group_id=2055&atid=102055
> > Then, my question is: How can I find such an utf-8 font?
> > I used xfontsel to search for an utf-8 font, and I put the
> > only font whose encoding (according to xfontsel) was "u"
> > into my .Xresources in the hope that this "u" meant "utf-8":
> Look for fonts with iso-10646 encoding.
You are right: utf-8 is the same as iso-10646! I changed
uxterm to use an iso-10646 font and now it's displaying the
characters of a lot of new languages. I put in ~/.Xresources:
The problem with gnuplot "png terminal" also is solved, but
the "x11 terminal" still doesn't work properly with unicode
strings. I guess that this is a problem between gnuplot and
the X server, and not a misconfiguration of my system.
Thanks for your suggestion!
Jakson A. Aquino