All text tags are Unicode. Some text may be a convenient subset of
Unicode which has a smaller name. If you know a priori that your text
will use it, and are trying to process text as bytestrings, that's
what .encode() is for. Is there a different problem here?
--
Michael Urman
Ah. Chances are your file's tag is (technically) corrupt, as there is
no indicator that allows an ID3 tag to use cp1251 encoding. Many
Windows-based taggers would stuff the active codepage encoding in what
is really latin1. To recover your text, you could try
artist = badly_encoded_artist.encode('latin1').decode('cp1251')
--
Michael Urman
Please post the code you used that triggered this error, as well as
the tags in the file (using
>>> x = EasyID3('filename')
>>> for (k, v) in x.items(): print(k, v)
or similar).
Steven