in reply to renaming filenames
Perl punts on Unicode for most OS related interactions because different OSs handle Unicode differently, or not at all (see When Unicode Does Not Happen).
For Windows you can call the Win32 API MoveFile function to get the job done:
use strict; use warnings; use utf8; use Win32::API; my $moveFile = Win32::API->new("Kernel32", MoveFileW => 'PP', "I"); my $to = 'poesía'; my $from = 'canción'; $moveFile->Call(Encode::encode("UTF-16LE", $from), Encode::encode("UTF-16LE", $to));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: renaming filenames
by andalou (Novice) on Aug 16, 2012 at 04:09 UTC | |
by GrandFather (Saint) on Aug 16, 2012 at 05:21 UTC | |
by andalou (Novice) on Aug 16, 2012 at 16:44 UTC | |
by Anonymous Monk on Aug 16, 2012 at 16:50 UTC | |
by andalou (Novice) on Aug 16, 2012 at 21:44 UTC |