Net::IDN::Punycode - A Bootstring encoding of Unicode for IDNA (RFC 3492)
use Net::IDN::Punycode; $punycode = encode_punycode($unicode); $unicode = decode_punycode($punycode);
This module implements the Punycode encoding. Punycode is an instance of a more general algorithm called Bootstring, which allows strings composed from a small set of "basic" code points to uniquely represent any string of code points drawn from a larger set. Punycode is Bootstring with particular parameter values appropriate for IDNA.
Note that this module does not do any string preparation as specified by nameprep/stringprep. It does not do add any prefix or suffix, either.
The following functions are exported by default.
Decodes $input with Punycode and returns the result.
$input
This function will throw an exception on invalid input.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>, Claus Färber <CFAERBER@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
RFC 3492 http://www.ietf.org/rfc/rfc3492.txt, IETF::ACE, Convert::RACE
To install IDNA::Punycode, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IDNA::Punycode
CPAN shell
perl -MCPAN -e shell install IDNA::Punycode
For more information on module installation, please visit the detailed CPAN module installation guide.