jhoule has asked for the wisdom of the Perl Monks concerning the following question:
I try to create a simple script that create a list of files included under a source directory but, missing in a destination directory to copy those files (the missing ones) from source to destination.
The problem is that some of those files got French accentuated characters.
So à (133) is replaced by α (224).
From now, I've try many different solutions that I have found on this site and other places into the Web, without never finding a way to succeed. The nearest is :
use Encode qw(from_to);
from_to($fic, "cp1250", "utf8");
I tried with almost each encoding found in perldoc Encode::Supported (Like cp437, cp850, cp852, iso-8859-1, ..., iso-8859-16), none replaced α (224) by à (133).
I'm running activeperl 5.8.0 on Win2k and XP
Any suggestion will be appreciated.
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot copy files when filenames got French accentuated character (Win32API::File)
by tye (Sage) on Nov 03, 2007 at 01:41 UTC | |
|
Re: Cannot copy files when filenames got French accentuated character
by tilly (Archbishop) on Nov 03, 2007 at 14:55 UTC | |
|
Re: Cannot copy files when filenames got French accentuated character
by jhoule (Initiate) on Nov 04, 2007 at 22:35 UTC |