Dear Allin:

Thanks. I've just tested the CVS for windows. Now, it is working great for showing Chinese characters in plots.

I also built gretl under ubuntu 8.10 and tested it. But it does not work under ubuntu 8.10 (in zh_TW mode).

I know that it might be irrelevant to this issue since I never successfully show Chinese characters in gretl's plots under ubuntu (either 8.04, 8.10, 9.04, and 9.10).

After I create a plot, I can edit the plot and choose a "TrueType font" under "main" tab. However, there are only three options in my ubuntu machine: Vera, Free Sans, and None. But none of these options can show Chinese characters correctly. 

I see that from the main menu, Tools->Preferences->Fixed font, the gretl will show me a font selection windows with many font "Family" available. (the gretl for ms windows version has the same font selection interface both in plot editing and preferrences setting).

My curiosity is that: how may I make more fonts available for plots instead of the two default fonts, Vera and Free Sans under ubuntu? I tried to copy a Chinese ttf file to /usr/local/share/gretl/fonts and it does not work.

Best  wishes.

Yi-Nung


2010/6/24 Allin Cottrell <cottrell@wfu.edu>

On Wed, 23 Jun 2010, yinung at Gmail wrote:

> I found that if I edit the gnuplot commands of plot "gf1"
> by replacing
>    set encoding utf8
> with
>    set encoding default
>
> then the Chinese characters on the x-axis can be shown correctly (under
> windows XP).

Thanks. I've now committed a further fix: I think the trouble was
that in locales that don't use UTF-8 (and Windows never does), the
translated month names, which come from the C library function
strftime(), would come out in the wrong encoding.  Hopefully the
month names should now be OK with "set encoding utf8".

Allin

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users