Re: utf-8 and gnuplot
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:
xterm*font: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
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
http://distante.dyndns.org:8280/
Reply to: