Re: how to display non-english char in php-gtk?
| From: | Ptker | Date: | Sun, 22 Jun 2003 15:09:07 +0000 |
| Subject: | Re: how to display non-english char in php-gtk? | ||
| References: | 1 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3564@lists.php.net to get a copy of this message | ||
~{WVLeN4IhU}H7#!~}
font = "-misc-SimSun-normal-r-normal-*-*-90-*-*-p-*-gb2312.1980-0"
"Hui" <hui@elvala.com> ~{P4HkO{O"PBNE~}
:20030622125009.85982.qmail@pb1.pair.com...
> i searched a lot,and follow the article,
> add
>
> php-gtk.codepage= "GB2312"
>
> to the php.ini,
>
> created a gtk.rc
> -----------------------------------
> style "defaultfont"
> {
> font = "-unknown-System-normal-r-normal-*-*-120-*-*-p-*-gb2312-0"
> }
> class "GtkWidget" style "defaultfont"
> ----------------------------------------
> then used:GTK::rc_parse('./gtk.rc');
>
> and i got the right display in the window
> 's title,but noting in the buttons or any others,it seems that all the
> chinese chars missed!
>
> like:
> $rest = &new GtkButton('Clear~{VPND~}');
> the chars after Clear are 2 chinese chars.
> when it shows,the button "rest" only has "Clear" this 5 letter:(:(:(
>
> but $window->set_title('Clear~{VPND~}');
> it will do!
>
> any one have the idea?
>
> THANK YOU!:)
> sorry for my BAD English.....
>
>