README 732 B

123456789101112131415161718
  1. Net::LibIDN - Perl bindings for GNU Libidn
  2. Provides bindings for GNU Libidn, a C library for handling
  3. Internationalized Domain Names according to IDNA (RFC 3490), in a way
  4. very much inspired by Turbo Fredriksson's PHP-IDN. There is currently
  5. no support for Perl's unicode capabilities (man perlunicode). All
  6. input strings are assumed to be octet strings, all output strings
  7. are generated as octet strings. Thus, if you require Perl's unicode
  8. features, you will have to convert your strings manually. For example:
  9. use Encode;
  10. use Data::Dumper;
  11. print Dumper(Net::LibIDN::idn_to_unicode('xn--uro-j50a.com', 'utf-8'));
  12. print Dumper(decode(
  13. 'utf-8',
  14. Net::LibIDN::idn_to_unicode('xn--uro-j50a.com',
  15. 'utf-8')));