<div>Hi,<div><br></div><div>I hacked the source code of taglib,</div><div>in String.cpp, I add "t = Latin1", for each function who has a paramater "Type t",</div><div>then in my tag parser plugin, I just use "str.to8Bit()" to get std::string,</div>
<div>and do the charset checking & conversion in my upper layer.</div><div>It works pretty fine.</div><div><br></div><div>Anyway, I DO NOT think taglib should take care about charset encoding.</div><div>All the charset related code should be dropped.</div>
<div>Because upper layer can do this much more professional, and has its own mechanism to handle it.</div><div><div><br></div><div>Of course I know the ID3 spcification may also cover about the charset encoding issue.</div>
<div>But its NOT the taglib's responsibility, </div><div>all taglib need to do is to fetch the raw text data, store the raw text data provided by upper layer.</div><div>So wchar_t is useless, wstring is useless, and even tstring.h & unicode.h is useless! char and std::string is enough for it.</div>
<div><br></div>-- <br>Best regards,<br>Yanhui Shen<br></div>
</div>