<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I assume the reason why you want this is that you have MP3 files with<br>
invalid ID3 tags, saying that the text is in Latin-1, while in fact<br>
it's in some other local encoding. While it would be nice to have an<br>
API in TagLib to repair such files, TagLib should never support<br>
writting such invalid tags.<br></blockquote><div><br></div><div>Yes, it may be GBK or some other CJK encoding, and sometimes it's utf-8.</div><div>So I have to check the "raw" data, whether it is utf-8. </div>
<div>If not, I'll try to convert it to utf-8, and the user can specify the original encoding, just behaves like firefox.</div></div><div><br></div><div>Meanwhile, I found id3lib has an API named ID3_Field::GetRawText().</div>
<div>I haven't tried yet, but I hope taglib could provide a similar API.</div><div><a href="http://id3lib.sourceforge.net/api/class_i_d3___field.html">http://id3lib.sourceforge.net/api/class_i_d3___field.html</a></div>
<div><br></div>-- <br>Best regards,<br>Yanhui Shen<br><br>