slugger415 has asked for the wisdom of the Perl Monks concerning the following question:
Hello esteemed monks, I am having trouble using wide characters in filenames on Windows 10 using File::Copy. The wide characters appear just fine if I write them to a text file, and I can manually copy/paste them into filenames in Windows Explorer, but if I use File::Copy they come out all wonky.
use File::Copy; my $oldname = "file.txt"; my $newname = "Hildur_Guðnadóttir.txt"; copy(oldname, $newname);
This file name comes out looking like so:
Hildur_Guðnadóttir.txt
Yet if I open a file and write $newname to it, it displays just fine.
Any way to do this correctly with (or without) File::Copy ?
Thanks, Scott
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wide characters in Windows filenames with File::Copy
by ikegami (Patriarch) on Nov 20, 2023 at 19:31 UTC | |
by Jenda (Abbot) on Nov 21, 2023 at 14:47 UTC | |
by slugger415 (Monk) on Nov 21, 2023 at 04:25 UTC | |
|
Re: Wide characters in Windows filenames with File::Copy
by BillKSmith (Monsignor) on Nov 21, 2023 at 00:43 UTC | |
by ikegami (Patriarch) on Nov 21, 2023 at 03:26 UTC | |
by slugger415 (Monk) on Nov 21, 2023 at 04:24 UTC |