1URI::_punycode(3)     User Contributed Perl Documentation    URI::_punycode(3)
2
3
4

NAME

6       URI::_punycode - encodes Unicode string in Punycode
7

SYNOPSIS

9         use URI::_punycode;
10         $punycode = encode_punycode($unicode);
11         $unicode  = decode_punycode($punycode);
12

DESCRIPTION

14       URI::_punycode is a module to encode / decode Unicode strings into
15       Punycode, an efficient encoding of Unicode for use with IDNA.
16
17       This module requires Perl 5.6.0 or over to handle UTF8 flagged Unicode
18       strings.
19

FUNCTIONS

21       This module exports following functions by default.
22
23       encode_punycode
24             $punycode = encode_punycode($unicode);
25
26           takes Unicode string (UTF8-flagged variable) and returns Punycode
27           encoding for it.
28
29       decode_punycode
30             $unicode = decode_punycode($punycode)
31
32           takes Punycode encoding and returns original Unicode string.
33
34       These functions throw exceptions on failure. You can catch 'em via
35       "eval".
36

AUTHOR

38       Tatsuhiko Miyagawa <miyagawa@bulknews.net> is the author of
39       IDNA::Punycode v0.02 which was the basis for this module.
40
41       This library is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself.
43

SEE ALSO

45       IDNA::Punycode, RFC 3492
46
47
48
49perl v5.16.3                      2012-02-11                 URI::_punycode(3)
Impressum