I tried your perl script and it works really well, Flemming. Thanks for bringing it to my attention. I see it works for all files in a given directory--exactly what I need. Now, in place of something like

Patrick\ Cohen\ \&\ Mosaiques\ Quartet\ -\ Quintet\ For\ Piano\ \&\ Strings\ 
In\ D\ Major\,\ Op.565\,\ G411\ -.\ Andante\ Come\ Prima.mp3

I get

Patrick_Cohen__and__Mosaiques_Quartet_-_Quintet_For_Piano__and__Strings_In_D_Major._Op.56��5._G411_-��._Andante_Come_Prima.mp3

--a big step in the right direction. But I'm still getting some wierd characters in there--�� and ��. Are these unicode or something? Anyway, I can't reproduce these at the command line. Is there any way your script might be made to catch and replace symbols like these as well (I mean, for someone who knows absolutely nothing about Perl, and precious little about scripting in general)? I have no idea what information these symbols are supposed to be representing. It's probably so inconsequential I don't even need it, so replacing it with virtually any other symbol should suffice. I'd say I've got at least 20 files with such symbols, and more are on the way.

Thanks, James

Reply via email to