Re: #36313 [Opn]: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(

From: Date: Wed, 08 Feb 2006 15:39:30 +0000
Subject: Re: #36313 [Opn]: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2378@lists.php.net to get a copy of this message
Anything but UTF-8 :) Sorry I should've updated the report - I see the same issue using CP1250. ----- Original Message ----- From: <andrei@php.net> To: <php-gtk-dev@lists.php.net> Sent: Wednesday, February 08, 2006 5:42 AM Subject: [PHP-GTK-DEV] #36313 [Opn]: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(
ID:               36313
Updated by:       andrei@php.net
Reported By:      pablo@php.net
Status:           Open
Bug Type:         PHP-GTK related
Operating System: linux ubuntu breezy
PHP Version:      5.1.2
New Comment: What is your php-gtk.codepage setting? What encoding is the script in? Previous Comments: ------------------------------------------------------------------------ [2006-02-07 04:28:58] pablo@php.net Description: ------------ GtkTreeView component complains about UTF-8 encoding when using accented characters. It also doesn't show the part of the string after the accented character. Reproduce code: --------------- <?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(); ?> Expected result: ---------------- no warnings, show the right string on GtkTreeView Actual result: -------------- warnings, do not show the appropriated string with accented characters. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36313&edit=1 -- 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


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