I was trying to copy to a file with the name having a german character and it fails. Here is the sample script
use strict;
use IO::File;
use File::Copy;
my $output = IO::File->new("> C:/temp/op.txt");
my $input = IO::File->new("< C:/temp/ip.txt") or die "could not open file for input\n";
my $ln = $ip->getline();
chomp($ln);
print $op "$ln\n";
$op->close;
$ip->close;
copy("C:\\temp\\abc.exe",$ln);
The input file have character "ü" and if the input file is saved in utf-8 (using notepad), it writes into the outfile proper charecter in utf-8, but the file copied with other characters. How can i force file copy to use utf-8 character. I was using xp both in german or xp.
use strict;
use IO::File;
use File::Copy;
my $output = IO::File->new("> C:/temp/op.txt");
my $input = IO::File->new("< C:/temp/ip.txt") or die "could not open file for input\n";
my $ln = $ip->getline();
chomp($ln);
print $op "$ln\n";
$op->close;
$ip->close;
copy("C:\\temp\\abc.exe",$ln);
The input file have character "ü" and if the input file is saved in utf-8 (using notepad), it writes into the outfile proper charecter in utf-8, but the file copied with other characters. How can i force file copy to use utf-8 character. I was using xp both in german or xp.