Introduction
lua-idn2 is a set of lua bindings to libidn2, an implementation of IDNA2008/TR46 internationalized domain names.
API
idn2 library
Load with require "idn2"
idn2.to_ascii(input, flags)
Note: This function will not exist if lua-idn2 is compiled against libidn2 0.16 or earlier.
idn2.to_unicode(input, flags)
Note: This function will not exist if lua-idn2 is compiled against libidn2 0.16 or earlier.
idn2.lookup(src, flags)
idn2.register(ulabel, alabel, flags)
idn2.to_ascii_lz(input, flags)
Note: This function will not exist if lua-idn2 is compiled against libidn2 0.16 or earlier.
idn2.to_unicode_8zlz(input, flags)
Note: This function will not exist if lua-idn2 is compiled against libidn2 0.16 or earlier.
idn2.to_unicode_lzlz(input, flags)
Note: This function will not exist if lua-idn2 is compiled against libidn2 0.16 or earlier.
idn2.lookup_ul(src, flags)
idn2.register_ul(ulabel, alabel, flags)
idn2.check_version(req_version)
Returns a string containing the version of libidn2.
idn2.VERSION
The libidn2 version as a string.
idn2.VERSION_NUMBER
The libidn2 version as an integer.