Hi,<br><br>I'm using TagLib on one of my projects (using Qt 4.5), and I'm having some trouble with foreign character support. I have a couple mp3 files with non-ASCII characters in the file path (mainly just accented vowels). Based on the TagLib::FileRef API, it appears as though the only way to create a file reference from a path is with a <span style="font-family: courier new,monospace;">char *</span>. Is there any way I can use a Unicode string to pass in the filename? <br>
<br>The issue I'm encountering is best illustrated as follows:<br>
<span style="font-family: courier new,monospace;">TagLib::FileRef
File(p_FilePath.toStdString().c_str()); // Compiles and works, but
breaks down if filename has non-ASCII characters</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">TagLib::FileRef File(p_FilePath.toStdWString()); // Doesn't compile</span><br><br>The Qt documentation of toStdWString can be found at the following address: <a href="http://doc.trolltech.com/4.6/qstring.html#toStdWString">http://doc.trolltech.com/4.6/qstring.html#toStdWString</a><br>
<br>Here's an example that works, going in the opposite direction (loading Unicode data from an existing reference):<br><span style="font-family: courier new,monospace;">QString Title = QString::fromStdWString(File.tag()->title().toWString());</span><br style="font-family: courier new,monospace;" clear="all">
<br>I would appreciate any clarification you are able to give. It's entirely possible I'm just not using the class properly. Apart from this issue, I'm thoroughly impressed with TagLib. Good work!<br><br>Thanks,<br>
Zach Rattner<br>