slackbuilds/perl/perl-Net-LibIDN
Heinz Wiesinger 63daf9f79a All: Support $PRINT_PACKAGE_NAME env var
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2021-07-17 21:55:09 +02:00
..
README perl/perl-Net-LibIDN: Update README. 2016-11-12 06:58:01 +07:00
perl-Net-LibIDN.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
perl-Net-LibIDN.info perl/perl-Net-LibIDN: Update download. 2018-05-27 11:11:05 +07:00
slack-desc various: Fix slack-desc formatting and comment nit picks. 2013-11-22 02:29:22 -05:00

README

Net::LibIDN - Perl bindings for GNU Libidn

Provides bindings for GNU Libidn, a C library for handling
Internationalized Domain Names according to IDNA (RFC 3490), in a way
very much inspired by Turbo Fredriksson's PHP-IDN. There is currently
no support for Perl's unicode capabilities (man perlunicode). All input
strings are assumed to be octet strings, all output strings are generated
as octet strings. Thus, if you require Perl's unicode features, you will
have to convert your strings manually. For example:

 use Encode;
 use Data::Dumper;
 print Dumper(Net::LibIDN::idn_to_unicode('xn--uro-j50a.com', 'utf-8'));
 print Dumper(decode(
       'utf-8', Net::LibIDN::idn_to_unicode('xn--uro-j50a.com', 'utf-8')));