aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2016-11-06 16:57:59 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-11-12 06:58:01 +0700
commit07a53ebdb5fd09075c876ce76adac3ee8542e11c (patch)
tree9234c781207a31e237d202ebb2fafb3e093f8029 /perl
parenteeaf70d56ef75707c746b10c57d9d21cac80cb6c (diff)
perl/perl-Net-LibIDN: Update README.
Diffstat (limited to 'perl')
-rw-r--r--perl/perl-Net-LibIDN/README17
1 files changed, 9 insertions, 8 deletions
diff --git a/perl/perl-Net-LibIDN/README b/perl/perl-Net-LibIDN/README
index e495139df4970..b437dffdf55a8 100644
--- a/perl/perl-Net-LibIDN/README
+++ b/perl/perl-Net-LibIDN/README
@@ -1,14 +1,15 @@
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:
+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')));
+ print Dumper(decode(
+ 'utf-8', Net::LibIDN::idn_to_unicode('xn--uro-j50a.com', 'utf-8')));