Re: UTF8 problems...

From: Date: Tue, 07 Feb 2006 03:25:56 +0000
Subject: Re: UTF8 problems...
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2355@lists.php.net to get a copy of this message
Of course, I haven't done this yet because I didn't know it was a really bug or the standard Gtk behavior :-) Pablo Em Ter, 2006-02-07 às 05:04 +0200, Steph Fox escreveu: > Pablo: could you please make a short test script for this and submit it as a > bug report? > > (http://bugs.php.net) > > ----- Original Message ----- > From: "Pablo Dall'Oglio" <pablo@dalloglio.net> > To: <php-gtk-dev@lists.php.net> > Sent: Tuesday, February 07, 2006 2:18 AM > Subject: Re: [PHP-GTK-DEV] UTF8 problems... > > > > Em Seg, 2006-02-06 à s 22:16 -0200, Pablo Dall'Oglio escreveu: > >> This code below, gives me: > >> (teste.php:8970): Pango-WARNING **: Invalid UTF-8 string passed to > >> pango_layout_set_text() > >> > >> Everytime I pass the mouse cursor over accented characters > >> Besides showing nothing besides the accented character in the list... > > > > Besides showing nothing after... > > > >> > >> I know that using utf8_encode() solves the problem. But is there another > >> workaround ? > >> > >> <?php > >> $window = new GtkWindow; > >> $window->set_default_size(200,200); > >> $window->set_position(GTK::WIN_POS_CENTER); > >> > >> $list = new GtkTreeView; > >> > >> $model = new GtkListStore(Gtk::TYPE_STRING); > >> $list->set_model($model); > >> > >> $column1 = new GtkTreeViewColumn(); > >> > >> $cell_renderer1 = new GtkCellRendererText(); > >> $column1->pack_start($cell_renderer1, true); > >> > >> $column1->set_attributes($cell_renderer1, 'text', 0); > >> > >> $list->append_column($column1); > >> > >> $data[] = array('Pedro'); > >> $data[] = array('Maria'); > >> $data[] = array('José'); > >> $data[] = array('Automóvel'); > >> $data[] = array('João'); > >> > >> foreach ($data as $copa) > >> { > >> $iter = $model->append($copa); > >> } > >> > >> $window->add($list); > >> $window->show_all(); > >> Gtk::Main(); > >> ?> > >> -- > >> :: Pablo Dall'Oglio > >> :: www.dalloglio.net > >> > > -- > > :: Pablo Dall'Oglio > > :: www.dalloglio.net > > > > -- > > PHP-GTK Development Mailing List (http://gtk.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > __________ NOD32 1.1380 (20060125) Information __________ > > > > This message was checked by NOD32 antivirus system. > > http://www.eset.com > > > > > -- :: Pablo Dall'Oglio :: www.dalloglio.net

« previous php.gtk.dev (#2355) next »