Convert v24 text encoding to a valid v23 encoding
//Convert to equivalent UTF16 format
if (textEncoding == TextEncoding.UTF_16BE)
{
return TextEncoding.UTF_16;
}
//UTF-8 is not supported in ID3v23 and UTF-16 Format can be problematic on ID3v23 so change
//to ISO-8859-1, a check before writing data will check the format is capable of writing the data
else if (textEncoding == TextEncoding.UTF_8)
{
return TextEncoding.ISO_8859_1;
}
else
{
return textEncoding;
}