[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Encoding problem in Gtk2::Ex::PodViewer
- From: Ben Staude <sben1783 yahoo de>
- To: gtk-perl-list gnome org
- Subject: Encoding problem in Gtk2::Ex::PodViewer
- Date: Sat, 26 Jul 2008 19:08:15 +0200
Hi all,
using the PodViewer widget to display help, I have an encoding problem: I
cannot get the widget to correctly display utf8 text.
I load the pod from a file which is in utf-8, but it is displayed as
iso-8859-1. I also loaded the file into perl first and used
$podviewer->load_string($string) but it didn't help.
If I display the string (loaded from the pod file) in a regular TextBuffer /
TextView, it's correctly displayed; also if I use it as label text or
similar.
### Sample script
use Gtk2 -init;
use Gtk2::Ex::PodViewer;
my $viewer = Gtk2::Ex::PodViewer->new;
# find mypod.pod attached, hope it's still utf8 after mailing it
$viewer->load('mypod.pod');
$viewer->show;
my $window = Gtk2::Window->new;
$window->add($viewer);
$window->show;
Gtk2->main;
###
Any ideas?
Thanks
Ben
=pod
=head1 Hello World!
The world is a better place since there's utf8. We no longer have problems with the euro sign (€) or german umlauts like ae (ä), ue (ü) and so on.
=cut
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]