Re: How to show the utf8 character?



Try adding:

    use utf8;

at the beginning of the perl program. You should then be able to just
enter the utf8 characters with any editor that supports it. For examples
of utf8 use with Perl/Gtk2 see:

    http://imagic.weizmann.ac.il/~dov/lectures/yapc-2004-perl-gtk2/slides.html

Regards,
Dov

On Wed, Aug 04, 2004 at 05:03:51PM +0800, Lich Lee wrote:
I tried to use:
$entry -> set_text("????");
"????" is chinese character, I don't kown if your
computers support.
I couldn't set text to chinese. It showed me some
troubled code but I could read chinese by $entry ->
get_text() to a varirable, and print it to the shell
where everything looks well.
I've tried 

use Encode;
$entry -> set_text(encode('utf8', "????"));

Doesn't work;
so, ask for help.
thx alot.

_________________________________________________________
Do You Yahoo!?
??????????????????"????"????????????????????
http://image.yisou.com
 
100??????????????????????????????????
http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/
_______________________________________________
gtk-perl-list mailing list
gtk-perl-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list



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