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:


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!?
gtk-perl-list mailing list
gtk-perl-list gnome org

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