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

gnuplot and utf-8



Hello,

I'm trying to run gnuplot graphics with non-ascii characters
in an environment where the locale is set to UTF-8. However,
the utf-8 strings are being interpreted as either iso-8859-1
or iso-8859-2. Did anyone experienced the same problem?

I reported the bug, 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, I've tried to set the gnuplot font in the
~/.Xresources file, but this wasn't enough to get it working
correctly. Below are three different attempts that I did:

gnuplot*font: -xos4-terminus-medium-r-normal-*-12-120-75-75-c-*-*-u
gnuplot*font: -efont-*-*-*-*-*-12-*-*-*-*-*-*-*
gnuplot*font: -bitstream-*-*-*-*-*-12-*-*-*-*-*-*-*

In my tests, I see the word "Freqüência" turned into either
"Freqüêcia" or "FreqǍźǍŞncia" if I run "gnuplot stat.cmd"
(the file stat.cmd is in the the following archive):

http://distante.dyndns.org:8280/utf8test.tar.gz

I'm using XOrg (6.9.0.dfsg.1-4), and below, there is
additional information about my system:

$ uname -a
Linux debian 2.6.12-1-amd64-k8 #1 Wed Sep 28 02:31:26 CEST 2005 x86_64 GNU/Linux

$ cat /etc/locale.gen
en_US.UTF-8 UTF-8
fr_FR.UTF-8 UTF-8
pt_BR.UTF-8 UTF-8

$ locale |grep LANG
LANG=pt_BR.UTF-8

Thanks!

-- 
Jakson A. Aquino
http://distante.dyndns.org:8280/



Reply to: