First Method:
1.sudo apt-get -y install python-mutagen
2.cd /你的音乐文件夹
run these command:mid3iconv -e GBK *.mp3
zyx@zyx-desktop:/media/AMUSEMENT/College Amusement Life/MUSIC/LOVE$ mid3iconv -e GBK *.mp3
3.然后将音乐重新导入rhythmbox,OK!
Reason:
这里用到了mid3iconv 命令,用mid3iconv --help 显示帮助如下:
Mutagen-based replacement the id3iconv utility, which converts ID3 tags from
legacy encodings to Unicode and stores them using the ID3v2 format.
Options:
--version show program's version number and exit
-h, --help show this help message and exit
-e ENCODING, --encoding=ENCODING
Specify original tag encoding (default is UTF-8)
-p, --dry-run Do not actually modify files
--force-v1 Use an ID3v1 tag even if an ID3v2 tag is present
--remove-v1 Remove v1 tag after processing the files
-q, --quiet Only output errors
-d, --debug Output updated tags
这个提示很简单,mid3iconv 命令主要是将原来mp3音乐文件的ID3信息转换成了Unicode并用ID3v2的格式存回文件中。因为原来的mp3音乐文件中存入的信息并不全都是 Unicode格式的,所以才会导致一些播放器的乱码问题。而wma格式的音乐信息并不采用ID3 tags,所以也就没有这样转换的必要。
Second Method:
1.在终端输入:
vi ~/.profile
2.在最后加入下面内容:
export
GST_ID3_TAG_ENCODING=GBK:UTF-8:GB18030
export
GST_ID3V2_TAG_ENCODING=GBK:UTF-8:GB18030
3.保存退出。
source
~.profile
4.重启Rhythmbox把歌曲重新导入即可显示正确。
注:此方法在Ubuntu 10.04可行,其他版本应该问题也不大。