aboutsummaryrefslogtreecommitdiff
path: root/perl/perl-Net-LibIDN
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-14 04:01:20 -0400
committerB. Watson <yalhcru@gmail.com>2022-03-14 04:01:20 -0400
commita6380d3947f7e068eea77a0b6d4e079b64074ce9 (patch)
treec2605212927d53feb3258083c82607f27a6613e0 /perl/perl-Net-LibIDN
parent1ca5801dcaf9d246ee4390913dd445dcab45fed8 (diff)
perl/perl-Net-LibIDN: Wrap README at 72 columns.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'perl/perl-Net-LibIDN')
-rw-r--r--perl/perl-Net-LibIDN/README12
1 files changed, 7 insertions, 5 deletions
diff --git a/perl/perl-Net-LibIDN/README b/perl/perl-Net-LibIDN/README
index b437dffdf55a..3b3a23c00f6e 100644
--- a/perl/perl-Net-LibIDN/README
+++ b/perl/perl-Net-LibIDN/README
@@ -3,13 +3,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:
+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')));
+ 'utf-8',
+ Net::LibIDN::idn_to_unicode('xn--uro-j50a.com',
+ 'utf-8')));