logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Need help on international chars: msg#00145

Subject: Re: Need help on international chars
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



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>