TagLib
1.13.1
|
An abstraction for the ISO-8859-1 string to data encoding in ID3v2 tags. More...
#include <id3v2tag.h>
Public Member Functions | |
Latin1StringHandler () | |
virtual | ~Latin1StringHandler () |
virtual String | parse (const ByteVector &data) const |
An abstraction for the ISO-8859-1 string to data encoding in ID3v2 tags.
ID3v2 tag can store strings in ISO-8859-1 (Latin1), and TagLib only supports genuine ISO-8859-1 by default. However, in practice, non ISO-8859-1 encodings are often used instead of ISO-8859-1, such as Windows-1252 for western languages, Shift_JIS for Japanese and so on.
Here is an option to read such tags by subclassing this class, reimplementing parse() and setting your reimplementation as the default with ID3v2::Tag::setStringHandler().
TagLib::ID3v2::Latin1StringHandler::Latin1StringHandler | ( | ) |
|
virtual |
|
virtual |
Decode a string from data. The default implementation assumes that data is an ISO-8859-1 (Latin1) character array.