Skip to content

解决rhythmbox乱码

2010 五月 2
by 荒野无灯

一,转换法

1
2
3
4
5
6
7
8
9
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为例,可以在系统环境变量或用户的环境变量中增加如下内容:
vim .profile

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

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

此文基本参考 Ubuntu wiki .

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=3749

4 Responses Post a comment
  1. David permalink
    九月 26, 2010

    还是不行,不知道为什么在terminal里直接输入方法2里的code还是有乱码。求救! :cry:

  2. 五月 2, 2010

    经测试 ,在 ubuntu 10.04下面 方法二效果相当好! :mrgreen:

Trackbacks & Pingbacks

  1. Vincent 的備忘錄 » Blog Archive » rhythmbox 亂碼
  2. 解决ubuntu下音乐播放器Rhythmbox乱码问题 | Simnovo

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS