RACE-to-puny HOW-TO if you can install libidn localy.

=========================================================
BEGIN {
                                                                              
    $path_to_config = "<path_to_conf_file>";
    do "$path_to_config/OpenSRS.conf";
}

use warnings;
use strict;
                                                                              
use lib $PATH_LIB;
use Net::LibIDN;
use RACE;
RACE::Initialise(%RACESETTINGS);
                                                                              
while (<>){
chomp;
$race = lc $_;
my $race_utf8 = RACE::UndoRACE(
        Domain => $race,
        EncodingType =>'utf-8');
                                                                              
if ($race_utf8->{Error}){
    print "Error\t$race\t$race_utf8->{Error}\n";
    next;
}
                                                                              
my $idn_utf8 = 
Net::LibIDN::idn_to_ascii($race_utf8->{OriginalDomain},"UTF-8");
print $idn_utf8,':',$race,":\n";

======================================================

On Fri, 23 Apr 2004, James M Woods wrote:

> Bring those names over here! We'll bulk convert them for you! ;)
> 
> Cheers,
> 
> James
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of [EMAIL PROTECTED]
> Sent: April 23, 2004 5:50 AM
> To: James M Woods; [EMAIL PROTECTED]
> Subject: Re: conversion from race tu ounycode
> 
> James,
> 
> Thanks for the reply.
> Yes I noticed that Tucoes copied the VeriSign conversion tool and directly
> links to Verisign;-) http://mct.verisign-grs.com/conversiontool/index.shtml
> 
> e.g. " <b><input type="radio" name="type" value="RACE" /></b><a
> href="javascript:void(0);"
> onclick="javascript:window.open('http://mct.verisign-grs.com/conversiontool/
> types.html','Character_Types','toolbar=no,location=no,directories=no,status=
> no,menubar=no,scrollbars=no,resizable=yes,width=330,height=350');">RACE</a>"
> 
> Maybe I have registered many IDN domains with a different registrar. My
> fault...I know. :-)
> 
> 
> 
> > Tucows does not offer any bulk conversion tool, only the one available
> here
> > : http://precow.tucows.com/cgi-bin/IDN/index.cgi
> >
> > However, you'll note that we converted each resellers active inventory 
> > of .com and .net IDN's. so I have to ask...what are you converting? ;)
> >
> > Cheers,
> >
> > James
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> > On Behalf Of [EMAIL PROTECTED]
> > Sent: April 22, 2004 8:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: conversion from race tu ounycode
> >
> > Hello,
> >
> > is there a bulk conversion tool from race code to puny code?
> > If you have many IDn domains it is time-consuming to cinvert it into 
> > puny code.
> > Maybe someone can help me.
> >
> > Thanks.
> >
> 

-- 
E.Pirogov
OpenSRS Developer

Reply via email to