|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36313 Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text(
Submitted: 2006-02-07 04:28 UTC Modified: 2006-02-09 09:48 UTC
From: Assigned:
Status: Closed Package: PHP-GTK related
PHP Version: 5.1.2 OS: linux ubuntu breezy
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2006-02-07 04:28 UTC]
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:
$window = new GtkWindow;

$list = new GtkTreeView;

$model = new GtkListStore(Gtk::TYPE_STRING);

$column1 = new GtkTreeViewColumn();

$cell_renderer1 = new GtkCellRendererText();
$column1->pack_start($cell_renderer1, true);

$column1->set_attributes($cell_renderer1, 'text', 0);


$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);


Expected result:
no warnings, show the right string on GtkTreeView

Actual result:
warnings, do not show the appropriated string with accented characters.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-08 04:42 UTC]
What is your php-gtk.codepage setting? What encoding is the script in?
 [2006-02-09 09:48 UTC]
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
Thank you for the report, and for helping us make PHP better.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 00:01:30 2024 UTC