ID3lib doesn't support Unicode filenames
Brought to you by:
t1mpy
ID3lib doesn't support Unicode filenames - there is no
wchar version of the Link function. This is a big
problem, because if the title has unicode characters in
it, the file name will naturally have the same characters.
For example, if you have a file called Öğretmenb.mp3
(with Turkish g) it will be translated to Ögretmenb.mp3
when you convert it to ASCII. If you try to open this
with fopen it will fail, because it can't find the file
(this is under Windows)
Logged In: YES
user_id=1254797
id3lib itself doesn't bother much about filenames, as it
works with the content of files. in order to process files
which have a unicode path/filename, you only have to make
the data available to the library. to do so, you have to use
the class skeleton ID3_Reader (declared in "id3/reader.h").
create a new class that inherits from ID3_Reader and write
the required functions:
void close();
pos_type getBeg();
pos_type getCur();
....
all these functions are commented in reader.h
once you've done that, you just have to create an object of
your class, and pass it as first parameter to function Link(
ID3_Reader&, unsigned short).
i've done it, it works flawlessly with japanese filenames.