Re: Localization and accented chars

I have localized my Gtk2 app in this way:

use Locale::gettext;
use POSIX qw(setlocale);
use Encode qw(decode);

sub _ {return decode("iso-8859-1",dgettext( PACKAGE,$_[0]));}
setlocale(LC_MESSAGES, "");

i think the problem is in the decode('iso...') function - you really cannot predict what encoding the users 
will use - it might aswell be utf8...

$string = _("Generic message");
It works fine, but users reports problems with accented language in
french and with Umlats in german. I have tested them on my system
(italian locale) and they work fine.
What else can I do?

regards, bostjan

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