Module punycode

Punycode ([RFC 3492](http://tools.ietf.org/html/rfc3492)) implementation.

Description

Punycode ([RFC 3492](http://tools.ietf.org/html/rfc3492)) implementation.

Function Index

decode/1Convert Punycode to Unicode.
encode/1Convert Unicode to Punycode.

Function Details

decode/1

decode(Input::string()) -> string()

Convert Punycode to Unicode. exit with an overflow or badarg errors if malformed or overflow. Overflow can only happen on inputs that take more than 63 encoded bytes, the DNS limit on domain name labels.

encode/1

encode(Input::string()) -> string()

Convert Unicode to Punycode.

exit with an overflow error on overflow, which can only happen on inputs that would take more than 63 encoded bytes, the DNS limit on domain name labels.


Generated by EDoc