cstring returning invalid encoding? mp3's

Lukáš Lalinský lalinsky at gmail.com
Mon Sep 21 09:27:15 CEST 2009

On Mon, Sep 21, 2009 at 9:07 AM, Caleb Cushing <xenoterracide at gmail.com> wrote:
>                        const char *ttitle = tfile.tag()->title().toCString();

See http://developer.kde.org/~wheeler/taglib/api/classTagLib_1_1String.html#ac86b42f97707048978f4ac9dd801959

"If unicode if false (the default) this string will be encoded in
Latin1. If it is true the returned C-String will be UTF-8 encoded."

>                                << tran.esc(ttitle)

And it seems that here you are trying to interpret the Latin-1 string as UTF-8.

Lukas Lalinsky
lalinsky at gmail.com

More information about the taglib-devel mailing list