read wma tag in 1.6.1

mociml mociml at 126.com
Wed Apr 14 11:10:57 CEST 2010


 
 
 
hello everyone,
I have two questions to ask ,
(1)
when I want to read  wma tag info,
in my PC,it works well,but in a cross platform board,it  can't read,what's why?
I use the example/readertag.cpp,in QT4.5!
readtag(QString filename)
{
    TagLib::FileRef f(filename.toUtf8().data());
    if(!f.isNull() && f.tag()) {
      TagLib::Tag *tag = f.tag();
      cout << "-- TAG --" << endl;
      cout << "title   - \"" << tag->title()   << "\"" << endl;
      cout << "artist  - \"" << tag->artist()  << "\"" << endl;
      cout << "album   - \"" << tag->album()   << "\"" << endl;
      cout << "year    - \"" << tag->year()    << "\"" << endl;
      cout << "comment - \"" << tag->comment() << "\"" << endl;
      cout << "track   - \"" << tag->track()   << "\"" << endl;
      cout << "genre   - \"" << tag->genre()   << "\"" << endl;
    }
}
(2)when read out tag info ,some of them is written in Chinese ,in Qt 4.5,I turn it to GB2312,but some are unrecognizable code,how to solve? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/taglib-devel/attachments/20100414/59a9d2a6/attachment.htm 


More information about the taglib-devel mailing list