rbutcher has asked for the wisdom of the Perl Monks concerning the following question:
c::bind_textdomain_codeset('rpmdrake', 'UTF8'); sub translate { my ($s) = @_; my $r = ''; if ($s) { $r = c::dgettext('rpmdrake', $s); $r eq $s and $r = Locale::gettext::iconv(c::dgettext('urpmi', +$s), undef, "UTF-8"); c::set_tagged_utf8($r); } $r; }
Edited by Chady -- added code tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Missing constant iconv
by TZapper (Acolyte) on Aug 13, 2004 at 06:48 UTC | |
by rbutcher (Beadle) on Aug 13, 2004 at 07:31 UTC | |
by rbutcher (Beadle) on Aug 13, 2004 at 09:13 UTC |