tom permutt Wrote: 
> Short of, no; but here is a Perl program that will rename all files with
> non-ASCII characters.  Pretty painless if you have Perl installed. 
> (ActiveState Perl is free if you don't, but installation may be
> slightly less painless.)  You don't need to retag.
> 
> use File::Find;
> use File::Copy;
> find sub {($newname = $_) =~ s/\P{IsASCII}//g &&
> move $_, $newname
> }, "your_directory_here";

I tried and it worked with certain file names.

But when I tried with file names like:

Monteverdi ~ Le passioni dell'anima (Monteverdi) ~ 08 ~ Sì dolce
è'tormento ~ Classical ~ 1999.flac

It returns with the error message:
"Malformed UTF-8 character (unexpected non-continuation byte 0x20 after
start byte 0xec) in substitution (s///) at test.pl line 4."

So effectively the filename crashed the Perl script :)

Any ideas?  I really appreciate the help.  I am getting there.


-- 
agentsmith
------------------------------------------------------------------------
agentsmith's Profile: http://forums.slimdevices.com/member.php?userid=1838
View this thread: http://forums.slimdevices.com/showthread.php?t=22689

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to