Index   Spaceship projects:   IDNuggets   Spaceship   PHPatches   UMLmania   Querem   Python Stuff
IDNuggets - Tools for handling Internationalised Domain Names

Perl Net::LibIDN - Perl bindings for GNU LibIDN


Why another Perl module for providing IDNA support? Well, it's AFAIK the only one that links against LibIDN, thus avoiding duplication of code. Plus, I really wanted to learn how to write XS Perl modules ;)

The interface was basically ripped from Turbo Frederiksson's PHP-IDN. Use this Perl module in conjunction with PHP-IDN to meet your Perl/PHP/C IDNA needs from a single code base.


LibIDN 0.4.0 includes experimental support for testing for the restricted character sets that some TLD registries specify for IDN registrations (e.g. at the moment you could register pèrl.de but not pèrl.se). However, because of copyright fears (As far as I am concerned those tables are in the public domain, but it's hard to actually prove this), not very many TLD restriction tables are included with the default release of Libidn. Get a more complete set of tables at http://tldchk.berlios.de. If you feel like contributing tables for TLDs not yet covered or provide bugfixes, do not hesitate drop me a line at jacob at users dot berlios dot de.


Current version 0.11 of Net::LibIDN, see Changes file inside distribution

Download from CPAN (contains Debian package build support).


In case you want to chat about Net::LibIDN, here's a forum.

GNU Libidn - TLD checking patch


Obsolete, slightly different version is now part of the official Libidn release

Many TLDs only allow a restricted set of characters in their IDNs, this patch adds support to Simon Joseffson's LibIDN for checking these restrictions.

Get the current patch against LibIDN 0.3.7 here.
Thomas Jacob, last update 26.08.2008 - Internet24