Hi all,<br><br>I wrote a simple tagging function trying to make a v2 tag, like so:<br>
<br>//The following includes are to make the ID3v2 stuff compile...<br>#include "id3v2tag.h"<br>#include "mpegfile.h"<br>#include <tlist.h><br>#include <fileref.h><br>#include <tfile.h><br>
#include <tag.h><br><br>Tag(const wchar_t *path, const wchar_t
*title, const wchar_t *artist, const wchar_t *album, const wchar_t
*comment, const wchar_t *genre, const wchar_t *year, const wchar_t
*track)<br>{// Function takes 8 parameters.<br>
<br> <span class="il">TagLib</span>::FileName fs(path);<br> <span class="il">TagLib</span>::MPEG::File f(fs);<br><br> <span class="il">TagLib</span>::ID3v2::Tag *t = f.ID3v2Tag(true);<br> <span class="il">TagLib</span>::String tlTitle(title);<br>
t->setTitle(tlTitle);<br> f.save();<br> <br>
}//END FUNCTION TAG<br><br>But it only creates ID3v1 tags, and so if there are <span class="il">unicode</span> characters (like Japanese, Korean, Chinese, etc), it can't/doesn't write the tag.<br><br>How do I force a v2 tag to be written? If I do, will the Unicode characters work? <br>