--===============0856417893== Content-Type: multipart/signed; boundary="nextPart9341894.lPvY0YFWZW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart9341894.lPvY0YFWZW Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday 05 December 2009 23:56:58 Plasty Grove wrote: > Thanks so much Michael. That's exactly what was needed, straight ASCII > conversion. >=20 > This is what works: >=20 > QString qstr =3D "/home/mydir/music/song.mp3"; > TagLib::FileRef tagFile(qstr.toAscii()); >=20 > Apologies, I didn't take note of the toAscii() function. Please keep in mind that this is still broken in like 92% of the world or s= o.=20 You will in general need to use /some/ encoding, you just need to make sure= =20 TagLib is using the same one. I'd recommend UTF8 as it's supported by both TagLib and Qt. Indeed, I finally took a look at the TagLib String API reference=20 (http://developer.kde.org/~wheeler/taglib/api/classTagLib_1_1String.html) a= nd=20 noted that the function you want is already defined: QStringToTString(s) (in the Related Functions section). So don't reinvent the wheel, just use QStringToTString Regards, - Michael Pyne --nextPart9341894.lPvY0YFWZW Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iQIcBAABCAAGBQJLG12ZAAoJEAuvDJx7auny1DEP/RmO88XtuKXfyx5hgFwAlKKj h2DJl1KqRZ3cOBVeXIJuXvFGfhQm6moAcVIcYa4AG8xx8jh2hpuoRI547AXsubXa b042gyG+xAgUMl6gQ9hIyeL7yAJI6VFu+ywXwnWlOW7htDSQxmPJJqluOjnuCjJm S/ClX5Es3/l0XA1wWQK0vZa8ba9F3bZaxLryHSeVjlwlb4s7EVqHh1ib02UuKGiD A6OS1b39X6klBQsEtkmKvzWtYQjlZzri3bK02TS20e/lhDzCXBz5Jx0tdPIZtsuM lkqKEPPe9t/ZD376IX787TG6r8lrR99EYK+zIVCp8Q+Mc3qqABZ3Rn35Q0YDYT56 1sUd4ExiSaBv/4GxQXdG6yW6uBGmAJTXE6rQ0xoLNVAdPqvSwYnLAppHpBxUEL6U iLQ1ip8orJzN+5vRD6z+D4FP0dgyhZ5EOAUi7hYtObUOi3HCSNlHlJMXD6457i0C CmRpRf/KMWHiMG8lzY5b0GhXmtSr+iVyQtQq1kpKvyeTOPvHgTARF0haHwHB9vQy oPBrw7O/q9PUcGTZFsN+ZYJaLs81UiiLof6B7eGITxivCAJI8Z/9Cj9VRM0MERoO k95uWqmRjiuJr7IkhudZbMzENiNhysEkzUOk4jK2fhrYYzTPrcbq0VZadgQfY+2F MYo82runZG8E/URe/lM/ =d9Pi -----END PGP SIGNATURE----- --nextPart9341894.lPvY0YFWZW-- --===============0856417893== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ taglib-devel mailing list taglib-devel@kde.org https://mail.kde.org/mailman/listinfo/taglib-devel --===============0856417893==--