解决文件名mp3标签的中文乱码问题

在Debian/Ubuntu或者其他Linux下面听歌的话,一般都会发现中文的TAG显示为乱码。这是因为Linux环境一般都是UTF8,而mp3大多是windows下面的,用的是gbk编码。解决的办法很简单,只需要添加两个环境变量即可:

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

可以把这两句加入到.profile, .bashrc, .bash_profile之间任意一个,一般是放到.bash_profile里面。这样启动播放器rhythmbox,load mp3,中文显示就正常了。
参考链接:http://wiki.ubuntu.org.cn/解决文件名mp3标签和文本文件内容的乱码问题

About 王永杰

路漫漫其修远兮,吾将上下而求索
This entry was posted in linux应用, 技术为本. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>