IETF::ACE - Perl extension for IETF IDN WG ACE character conversions
use IETF::ACE qw / ... /;
Subroutines UCS4toName UCS4toUPlus UTF5toUCS4 GetCharFromUTF5 UCS4toRACE RACEtoUCS4 UCS4toLACE LACEtoUCS4 Base32Encode Base32Decode CheckForSTD13Name CheckForBadSurrogates HexOut DebugOn DebugOff DebugOut The formats are: utf8 utf16 ucs4 utf5 from draft-jseng-utf5-01.txt race draft-ietf-idn-race-03.txt lace draft-ietf-idn-lace-01.txt name The character names; output only u+ The character hex values in U+ notation; output only
use strict; use diagnostics; use Unicode::String qw / utf8 /; use IETF::ACE qw / &UCS4toRACE /; my $TheIn="ábcde"; # .com my $TheUCS4 = utf8($TheIn)->ucs4; my $TheOut = &UCS4toRACE($TheUCS4); print <<EOD; Latin1 Input = $TheIn.com RACE Output = $TheOut.com EOD
None by default.
Paul Hoffman, Internet Mail Consortium phoffman@mail.imc.org
James Briggs james.briggs@yahoo.com
None.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in '$TheIn="ábcde";'. Assuming UTF-8
To install IETF::ACE, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IETF::ACE
CPAN shell
perl -MCPAN -e shell install IETF::ACE
For more information on module installation, please visit the detailed CPAN module installation guide.