#36313 [Opn->Csd]: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(
| From: | andrei@php.net | Date: | Thu, 09 Feb 2006 08:48:04 +0000 |
| Subject: | #36313 [Opn->Csd]: 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-2382@lists.php.net to get a copy of this message | ||
ID: 36313
Updated by: andrei@php.net
Reported By: pablo@php.net
-Status: Open
+Status: Closed
Bug Type: PHP-GTK related
Operating System: linux ubuntu breezy
PHP Version: 5.1.2
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-02-08 04:42:45] andrei@php.net
What is your php-gtk.codepage setting? What encoding is the script in?
------------------------------------------------------------------------
[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