UTF-8 strings as title for TreeViewColumn
- From: Rodrigo Torres <motoboi debian-ce org>
- To: gtk-perl-list gnome org
- Subject: UTF-8 strings as title for TreeViewColumn
- Date: Thu, 14 Apr 2005 15:02:08 -0300
Hi,
First of all, I've mistakenly sent this message early whithout subject. I'm a
subscriber of this list for some months and _really_ didn't wanted to do
that. Sorry.
I'm learning perl, trying to make some Gtk stuff and faced this problem
(well, dont even know if this is *really* a problem or simply a
/misunderstood/).
This snippet
my $renderer = Gtk2::CellRendererText->new;
my $column =
Gtk2::TreeViewColumn->new_with_attributes( "Código", $renderer,
text => COLUMN_COD, );
$column->set_sort_column_id(COLUMN_COD);
renders columns headers in wrong codeset. I mean, something like
Código. Well... you got the idea.
Read perldoc for Glib and found that is internally unicode. So, to catch the
error, I saved the file in iso-8859-1 encoding and it worked very well. So,
doubted from text-editors and executed /file/ on it:
$ file my_perl.pl
my_perl.pl: UTF-8 Unicode text
File don't lies ;)
Finally, anybody figured what I'm missing here?
Glib.pm
# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/Glib.pm,v 1.79
2005/03/07 20:34:22 kaffeetisch Exp $
Gtk2.pm
# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/Gtk2.pm,v 1.77
2005/03/07 21:06:51 kaffeetisch Exp $
our $VERSION = '1.080';
Thanks in advance for any help.
--
rodrigo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]