How to show the utf8 character?

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!?

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