Re: can't display chinese in the text box??



On Friday, November 21, 2003, at 02:56 PM, liu wrote:

in this demo,i can't input chinese in the popup windows's text box?
is this gtk2-perl can not support chinese display ?

....

$entry = Gtk2::Entry->new;
$entry->set_activates_default (1);
$entry->signal_connect ('insert-text' => sub {

you are filtering everything you type into the entry through a perl callback, the handler for the Entry's "insert-text" signal.

if you remove this callback, can you type correctly?

if so, then the problem lies in encodings and utf8 issues with the bindings which should be solvable, but which i do not know how to solve. (anyone?)

if the problem persists in the absence of the text-filtering perl callback, then the problem is probably not with the bindings.


--
muppet <scott at asofyet dot org>




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