Claus Färber > Net-IDN-Encode-0.02 > Net::IDN::Encode

Download:
Net-IDN-Encode-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View Bugs
Report a bug
Module Version: 0.02   Source  

NAME ^

Net::IDN::Encode - Encoding/Decoding of Internationalized Domain Names (IDNs).

SYNOPSIS ^

  use Net::IDN::Encode;
  $ascii = domain_to_ascii('müller.example.org');

DESCRIPTION ^

The "Net::IDN::Encode" module provides an easy-to-use interface for Internationalized Domain Names (IDNs).

FUNCTIONS ^

domain_to_ascii( $domain )

Converts all labels of the hostname $domain (with labels seperated by full stops) to ASCII. May throw an exception on invalid input.

domain_to_unicode( $domain )

Converts all labels of the hostname $domain (with labels seperated by full stops) to Unicode. May throw an exception on invalid input.

email_to_ascii( $email )

Converts the domain part (right hand side) of the RFC 2821/2822 email address to ASCII. May throw an exception on invalid input.

This function currently does not handle internationalization of the local-part (left hand side).

email_to_unicode( $email )

Converts the domain part (right hand side) of the RFC 2821/2822 email address to Unicode. May throw an exception on invalid input.

This function currently does not handle internationalization of the local-part (left hand side).

BUGS ^

This module relies on modules that should be considered ALPHA.

AUTHOR ^

Claus A. Färber <perl@faerber.muc.de>

COPYRIGHT ^

Copyright © 2004 Claus A. Färber All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.