coding utf-8 from mutagen easyid3 import EasyID3 import chardet audio

1
2
3
4
5
6
7
8
# -*- coding: utf-8 -*-
from mutagen.easyid3 import EasyID3
import chardet
audio = EasyID3("syava_feat._vitya_ak_-_ne_blatuy.mp3")
print audio['title'][0].decode("UTF-8").encode("iso-8859-15").decode("cp1251")