Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Charset when calling commands

Status
Not open for further replies.

kyroii

Programmer
Aug 13, 2006
1
ES
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top