php.net |  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: pablo@php.net 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pablo@php.net
New email:
PHP Version: OS:

 

 [2006-02-07 04:28 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-08 04:42 UTC] andrei@php.net
What is your php-gtk.codepage setting? What encoding is the script in?
 [2006-02-09 09:48 UTC] andrei@php.net
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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Mar 20 15:01:27 2019 UTC