debian man page for idna::punycode

Query: idna::punycode

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IDNA::Punycode(3pm)					User Contributed Perl Documentation				       IDNA::Punycode(3pm)

NAME
IDNA::Punycode - encodes Unicode string in Punycode
SYNOPSIS
use IDNA::Punycode; idn_prefix('xn--'); $punycode = encode_punycode($unicode); $unicode = decode_punycode($punycode);
DESCRIPTION
IDNA::Punycode is a module to encode / decode Unicode strings into Punycode, an efficient encoding of Unicode for use with IDNA. This module requires Perl 5.6.0 or over to handle UTF8 flagged Unicode strings.
FUNCTIONS
This module exports following functions by default. encode_punycode $punycode = encode_punycode($unicode); takes Unicode string (UTF8-flagged variable) and returns Punycode encoding for it. decode_punycode $unicode = decode_punycode($punycode) takes Punycode encoding and returns original Unicode string. idn_prefix idn_prefix($prefix); causes encode_punycode() to add $prefix to ACE-string after conversion. As a side-effect decode_punycode() will only consider strings beginning with $prefix as punycode representations. According to RFC 3490 the ACE prefix "xn--" had been chosen as the standard. Thus, "xn--" is also the default ACE prefix. For compat- ibility I'm leaving idn_prefix() in the module. Use "idn_prefix(undef)" to get the old behaviour. These functions throws exceptionsn on failure. You can catch 'em via "eval".
AUTHORS
Tatsuhiko Miyagawa <miyagawa@bulknews.net> is the original author and wrote almost all the code. Robert Urban <urban@UNIX-Beratung.de> added "idn_prefix()". This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://www.ietf.org/internet-drafts/draft-ietf-idn-punycode-01.txt Encode::Punycode perl v5.8.8 2005-09-01 IDNA::Punycode(3pm)
Related Man Pages
idna_to_unicode_44i(3) - debian
idna_to_unicode_44i(3) - centos
idna_to_unicode_44i(3) - suse
net::libidn(3) - centos
idna::punycode(3pm) - debian
Similar Topics in the Unix Linux Community
PHP Net_IDNA 0.6.0 (Default branch)
Unicode Data Browser 1.2 (Default branch)
ACE 5.6.5 (Development branch)
Help with Unicode identification using PERL or AWK
Perl script to delimit size of strings