Re: Need help on international chars
- From: Christian Borup <borup borup com>
- To: Gtk+ Perl <gtk-perl-list gnome org>
- Subject: Re: Need help on international chars
- Date: 31 May 2003 10:08:24 +0200
On fre, 2003-05-30 at 07:25, Dov Grobgeld wrote:
On Wed, May 28, 2003 at 06:50:10PM +0100, Bruno Tavares wrote:
I am writing an app with Gtk-Perl and i've some issues with
international chars.
You don't say which version you are working with and the answer
is different for Gtk and Gtk2. In Gtk you just provide the string
in whatever locale you have setup. In Gtk2 the strings must be
encoded in UTF8.
That they must. However, when developing in Perl those nitty gritty
details are taken care of.
Strings in the Perl scripts should be entered in the locale charset. The
typemaps in Gtk2 module will handle the conversion. If you want to have
utf8 in the source files, even when using a non-utf8 locale, you should
"use utf8".
However, there was a bug in the xs file for GtkLabel. So it didn't work
for labels...
I've submitted the 2 line patch to cvs...
./borup
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]