scandir inserting character in filename??
Posted: Thu Sep 08, 2011 6:13 pm
I am in the process of cleaning up the names of all of my mp3 files.
The format I desire is artist»title //that's an ascii 187 as a delimiter
when I read the filename in windows it looks like Andrew Sisters»Alexander's Ragtime Band.mp3 //exactly what I want
Using Ubuntu GUI it is the same /mnt/mirror2/music/mp3/Artists/AAAAA/Andrew Sisters/Andrew Sisters»Alexander's Ragtime Band.mp3
Using terminal I see Andrew Sisters┬╗Alexander's Ragtime Band.mp3
And scandir also reports Andrew Sisters»Alexander's Ragtime Band.mp3
obviously, Ubuntu is storing the filename as a multibyte character string and I know very little about them.
I've tried a couple of php routines to convert the strings but have been unsuccessful. Any suggestions would be appreciated.
Mac
The format I desire is artist»title //that's an ascii 187 as a delimiter
when I read the filename in windows it looks like Andrew Sisters»Alexander's Ragtime Band.mp3 //exactly what I want
Using Ubuntu GUI it is the same /mnt/mirror2/music/mp3/Artists/AAAAA/Andrew Sisters/Andrew Sisters»Alexander's Ragtime Band.mp3
Using terminal I see Andrew Sisters┬╗Alexander's Ragtime Band.mp3
And scandir also reports Andrew Sisters»Alexander's Ragtime Band.mp3
obviously, Ubuntu is storing the filename as a multibyte character string and I know very little about them.
I've tried a couple of php routines to convert the strings but have been unsuccessful. Any suggestions would be appreciated.
Mac