private void UpdateFrameList(ListTextFrame frame, Encoding srcEncoding) { for (int i = 0; i < frame.Value.Count; i++)//authors { frame.Value[i] = LangUtil.FixEncoding(frame.Value[i], LangEncoding.HebrewEncoding); frame.EncodingType = Id3TextEncoding.Unicode; } }
//TODO: Remove 2nd paprameter and auto detect encoding private void UpdateFrame(TextFrame fixme, Encoding srcEncoding) { var oldValue = fixme.Value; var newValue = LangUtil.FixEncoding(oldValue, srcEncoding); fixme.Value = newValue; fixme.EncodingType = _encoding; }