how to display non-english char in php-gtk?
| From: | hui | Date: | Sun, 22 Jun 2003 12:50:04 +0000 |
| Subject: | how to display non-english char in php-gtk? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-3563@lists.php.net to get a copy of this message | ||
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ÖÐÎÄ');
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ÖÐÎÄ');
it will do!
any one have the idea?
THANK YOU!:)
sorry for my BAD English.....