Re: Glib::filename_to_unicode

On Sun, Jul 03, 2005 at 13:00:37 +0200, The Saltydog wrote:
I am using Glib::filename_to_unicode() but I found something wrong..

My locale is it_IT, but if the filename contains an euro sign (?) it
is displayed in Nautilus, but my application is not working.

Try this: print Glib::filename_to_unicode('?'); doesn't work. This behaviour is not only for the euro sign, but
also for other wide characters.

I can think of two problems, that it might be:

1) G_BROKEN_FILENAMES environment variable. Glib thinks filenames are in
   unicode independent of locale, unless this is set.
2) The string in Perl is already marked as "utf-8", though it is not and
   the conversion is doing something wrong. Are you using
   use utf8;
   use encoding <whatever>;

                                                 Jan 'Bulb' Hudec <bulb ucw cz>

Attachment: signature.asc
Description: Digital signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]