P
polarz
I wrote a front end to a command line mp4 music tagger that reads
my playlist files and gets info such as artist, title, album, etc,
etc. I use the info to catalog, tag, sort, etc, my files. I've run
into a small encoding problem. I started using a fopen like so.
fopen = new StreamReader(myPlaylist);
Everything worked well until I ran into groups like Mötley Crüe
with strange chars in the title. The default encoding above failed
to recognise the odd chars in "Mötley Crüe". I then went to
fopen = new StreamReader(myPlaylist,Encoding.UTF7);
This correctly picked up the odd chars in Mötley Crüe, and
everything else I thought until I noticed a file with a '+' in
the file name wasn't getting picked up now. My question is for
lack of a better one, is there anyway to use both encodings at
the same time? I did try every other encoding besides UTF7 and
also tried:
fopen = new StreamReader(myPlaylist,Encoding.UTF7,true);
I'm out of ideas here :/ Any advice is much appreciated.
Thank you
my playlist files and gets info such as artist, title, album, etc,
etc. I use the info to catalog, tag, sort, etc, my files. I've run
into a small encoding problem. I started using a fopen like so.
fopen = new StreamReader(myPlaylist);
Everything worked well until I ran into groups like Mötley Crüe
with strange chars in the title. The default encoding above failed
to recognise the odd chars in "Mötley Crüe". I then went to
fopen = new StreamReader(myPlaylist,Encoding.UTF7);
This correctly picked up the odd chars in Mötley Crüe, and
everything else I thought until I noticed a file with a '+' in
the file name wasn't getting picked up now. My question is for
lack of a better one, is there anyway to use both encodings at
the same time? I did try every other encoding besides UTF7 and
also tried:
fopen = new StreamReader(myPlaylist,Encoding.UTF7,true);
I'm out of ideas here :/ Any advice is much appreciated.
Thank you