wx2utf_testing.pl 433 Bytes
Newer Older
priyank's avatar
priyank committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/perl

#use Encode;
require "lib/IndicCC.pl" or die "IndicCC.pl file not found\n";

$infile = $ARGV[0];
$lang = $ARGV[1];

open INFILE, $infile or die "failed to oprn $infile : $!";

while(<INFILE>)
{
        $line = $_;
        #print "INPUT TEXT:\n", $line, "\n";

        $line = &wx2utf($line, $lang);
        #print "OUTPUT TEXT:\n", $line, "\n";
	binmode STDOUT, ":utf8";
        print $line;
}