Hi All,
I have one xml file and i want to change some text in that file for that i am using the following perl code
[code=perl]open (IN, "c:/Unicode.xml") or die "Cannot open the xml File $!\n";
open (OUT, ">c:/Unicode.txt") or die "Cannot Create the text File $!\n";
binmode OUT;
while(<IN>)
{
$_ =~ s/\$/<Start>/ig;
print OUT $_;
}
close(IN);
close(OUT);[/code]
But the output(Unicode. txt) file having lot of junck characters where i replaced and i thought that the xml file in some unicode format may be.
Please help me to solve this problem.
Thanks in advance
Baskar K.
I have one xml file and i want to change some text in that file for that i am using the following perl code
[code=perl]open (IN, "c:/Unicode.xml") or die "Cannot open the xml File $!\n";
open (OUT, ">c:/Unicode.txt") or die "Cannot Create the text File $!\n";
binmode OUT;
while(<IN>)
{
$_ =~ s/\$/<Start>/ig;
print OUT $_;
}
close(IN);
close(OUT);[/code]
But the output(Unicode. txt) file having lot of junck characters where i replaced and i thought that the xml file in some unicode format may be.
Please help me to solve this problem.
Thanks in advance
Baskar K.
Comment