ID: 36313
Updated by: andrei@xxxxxxx
Reported By: pablo@xxxxxxx
-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@xxxxxxx
What is your php-gtk.codepage setting? What encoding is the script in?
------------------------------------------------------------------------
[2006-02-07 04:28:58] pablo@xxxxxxx
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
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|