Hi,
I'm making a script that reads the content of a directory (*.jpg) and then, for earch file uses convert/identify (a tool in imagemagick) on it.
$DIRIN = "C:\\Pics\\";
$_ = ...; (Filename)
So it does:
system ("identify \"$DIRIN$_\"");
That works... but only with [a-z][A-Z][0-9] and space characters.
If a filename is named: "aaá.jpg" it doesn't work anymore. But I really need this because in my language -spanish- this caracters are very common.
Doing s/\xA0/\xE1/g before "identify" will work for the last example. This is supposed to change (English?) ASCII "á" to Spanish ASCII "á".
This will work but I will need to do this with every char and also cannot find all chars I need in (English?) ascii table.
I'm using Spanish Windows XP pro with ActivePerl 5.8.8.817
Wish you can help me.
Thanks in advance
I'm making a script that reads the content of a directory (*.jpg) and then, for earch file uses convert/identify (a tool in imagemagick) on it.
$DIRIN = "C:\\Pics\\";
$_ = ...; (Filename)
So it does:
system ("identify \"$DIRIN$_\"");
That works... but only with [a-z][A-Z][0-9] and space characters.
If a filename is named: "aaá.jpg" it doesn't work anymore. But I really need this because in my language -spanish- this caracters are very common.
Doing s/\xA0/\xE1/g before "identify" will work for the last example. This is supposed to change (English?) ASCII "á" to Spanish ASCII "á".
This will work but I will need to do this with every char and also cannot find all chars I need in (English?) ascii table.
I'm using Spanish Windows XP pro with ActivePerl 5.8.8.817
Wish you can help me.
Thanks in advance