TagLib::FileRef and Unicode

Tsuda Kageyu tsuda.kageyu at gmail.com
Tue Dec 3 00:06:36 UTC 2013


Hi Jeremy.

How about using wmain() instead of main()?
main() is not suitable for arguments in Unicode. It converts the arguments into your local encoding irreversibly.

This may help you:

int wmain(int argc, wchar_t *argv[])
{
...
    QString filepath = QString::fromWCharArray( argv[argc - 1] );


More information about the taglib-devel mailing list