[prev in list] [next in list] [prev in thread] [next in thread]
List: taglib-devel
Subject: Re: cstring returning invalid encoding? mp3's
From: Caleb Cushing <xenoterracide () gmail ! com>
Date: 2009-09-21 8:21:58
Message-ID: 81bfc67a0909210121g2326fa39w9c7019f4ec481649 () mail ! gmail ! com
[Download RAW message or body]
changed my code around a little
if ( is_regular_file(*iter)) {
const char *tpath = iter->path().string().c_str();
TagLib::FileRef tfile(tpath);
const char *ttitle = tfile.tag()->title().toCString(true);
// convert to cstring for libpqxx
cout
<< iter->filename() << "\n"
<< tfile.tag()->title() << "\n" // outputs fine
<< ttitle << endl; // outputs nothing
or garbage for at least select mp3's...
even with toCString(true) set I still get the invalid byte sequence
for utf8 sometimes.
--
Caleb Cushing
http://xenoterracide.blogspot.com
_______________________________________________
taglib-devel mailing list
taglib-devel@kde.org
https://mail.kde.org/mailman/listinfo/taglib-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic