<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tommy's Blog &#187; GBK</title>
	<atom:link href="http://tommy.net.cn/tag/gbk/feed/" rel="self" type="application/rss+xml" />
	<link>http://tommy.net.cn</link>
	<description>Tommy 的自留地</description>
	<lastBuildDate>Mon, 27 Dec 2010 08:57:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>将 GBK 编码的 MP3 标签转换为 UNICODE</title>
		<link>http://tommy.net.cn/2008/08/18/convert-gbk-encoded-mp3-id3-tags-to-unicode/</link>
		<comments>http://tommy.net.cn/2008/08/18/convert-gbk-encoded-mp3-id3-tags-to-unicode/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 08:19:23 +0000</pubDate>
		<dc:creator>Tommy</dc:creator>
				<category><![CDATA[媒体应用]]></category>
		<category><![CDATA[GBK]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[ID3 Tag]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://tommy.net.cn/?p=33</guid>
		<description><![CDATA[因为在 Linux 下，大部分处理 MP3 的程序，都是用了 libid3tag 来处理 MP3 文件的 ID3 标签的。而因为安装的系统的问题，大部分人都会使用 UTF-8 编码。这样就导致到 GB2312/GB18030/GBK 编码的 MP3 文件在 Linux 下显示都是乱码。如果文件不多的话，手动修改也没有什么大碍，但是有鉴于本人比较懒，所以再次请出 Google，上网搜索解决方案。 经过一番搜索之后，找到了周枫的个人主页，以及他网站上公布的一个叫做 ID3iconv 的小工具。使用这个小工具，可以进行 ID3 编码的转换。需要注意的是，这个程序是用 Java 编写的。所以我们还需要安装一个 Java Runtime： sudo apt-get install sun-java6-jre 安装完成后可以用如下命令来运行该程序： java -jar id3iconv-0.2.1.jar 这里我们使用 -e 和 -remove1 两个参数，其中 -e 用来指定原始的编码格式，-removev1 用来移除 v1 版本的标签： java -jar id3iconv-0.2.1.jar -e gbk -removev1 *.mp3 如果连子目录内的文件也需要转换的话，使用如下命令： [...]]]></description>
			<content:encoded><![CDATA[<p>因为在 Linux 下，大部分处理 MP3 的程序，都是用了 libid3tag 来处理 MP3 文件的 ID3 标签的。而因为安装的系统的问题，大部分人都会使用 UTF-8 编码。这样就导致到 GB2312/GB18030/GBK 编码的 MP3 文件在 Linux 下显示都是乱码。如果文件不多的话，手动修改也没有什么大碍，但是有鉴于本人比较懒，所以再次请出 Google，上网搜索解决方案。</p>
<p>经过一番搜索之后，找到了<a title="周枫的主页" href="http://www.zhoufeng.net/" target="_blank">周枫的个人主页</a>，以及他网站上公布的一个叫做 <a title="ID3iconv" href="http://www.zhoufeng.net/eng/id3iconv/" target="_blank">ID3iconv</a> 的小工具。使用这个小工具，可以进行 ID3 编码的转换。需要注意的是，这个程序是用 Java 编写的。所以我们还需要安装一个 Java Runtime：</p>
<p><code>sudo apt-get install sun-java6-jre</code></p>
<p>安装完成后可以用如下命令来运行该程序：</p>
<p><code>java -jar id3iconv-0.2.1.jar</code></p>
<p>这里我们使用 -e 和 -remove1 两个参数，其中 -e 用来指定原始的编码格式，-removev1 用来移除 v1 版本的标签：</p>
<p><code>java -jar id3iconv-0.2.1.jar -e gbk -removev1 *.mp3</code></p>
<p>如果连子目录内的文件也需要转换的话，使用如下命令：</p>
<p><code>find . -iname "*.mp3" -execdir java -jar id3iconv-0.2.1.jar -e gbk -removev1 {} \;</code></p>
<p>这个转换工作在 Ubuntu Hardy 8.04 上测试通过。</p>
]]></content:encoded>
			<wfw:commentRss>http://tommy.net.cn/2008/08/18/convert-gbk-encoded-mp3-id3-tags-to-unicode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

