解决ubuntu下Rhythmbox乱码(转)

来源:http://ihacklog.com/linux/ubuntu-desktop/solution-to-rhythmbox-garbled.html

一,转换法

sudo apt-get install convmv iconv python-mutagen
#文件名由GBK转换为UTF8 
convmv -r -f cp936 -t utf8 --notest --nosmart *
#文件内容由GBK到UTF8 
iconv -f gbk -t utf8 $i > newfile 
#将 mp3 标签编码 由GBK转换至utf-8
find . -iname "*.mp3" -execdir mid3iconv -e GBK {} \;
#或 mid3iconv -e GBK ×/*.mp3 
# find . \( -iname "*.mp3" -o -iname "*.wma" \) -exec mid3iconv -e gbk '{}' \;
二,修改变量法

以用gstreamer做后端的播放器Rhythmbox为例,可以在系统环境变量或用户的环境变量中增加如下内容:
emacs .profile

export GST_ID3_TAG_ENCODING=GBK:UTF-8:GB18030
export GST_ID3V2_TAG_ENCODING=GBK:UTF-8:GB18030

其他播放器可以参考Archlinux的wiki的其他指导

posted @ 2012-05-03 21:05  紫月冰河  阅读(575)  评论(0编辑  收藏  举报