<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>石間謙 勝手ブログ Ver.2.5 &#187; swfmill</title>
	<atom:link href="http://jbar.jp/ishima/tag/swfmill/feed" rel="self" type="application/rss+xml" />
	<link>http://jbar.jp/ishima</link>
	<description>IT、iPhone、NOKIA、バー、日本酒、柏、冷麺、釣り、星、フードニングネタを書き綴るサイト</description>
	<lastBuildDate>Wed, 16 May 2012 02:13:44 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://jbar.jp/ishima/tag/swfmill/feed" />
		<item>
		<title>swfmillとFLASHLITE</title>
		<link>http://jbar.jp/ishima/it/swfmill%e3%81%a8flashlite.html</link>
		<comments>http://jbar.jp/ishima/it/swfmill%e3%81%a8flashlite.html#comments</comments>
		<pubDate>Wed, 06 Jan 2010 21:32:01 +0000</pubDate>
		<dc:creator>石間</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[swfmill]]></category>

		<guid isPermaLink="false">http://jbar.jp/ishima/?p=568</guid>
		<description><![CDATA[昨日はFLASHLITEをswfmillでいじるのに思いきりハマってしまった。 結果的には文字コードの問題だった。KLabの記事によると、日本語を含むFlash Lite 1.xのswfファイルをswfmill swf2 [...]]]></description>
			<content:encoded><![CDATA[<p>昨日はFLASHLITEをswfmillでいじるのに思いきりハマってしまった。</p>
<p>結果的には文字コードの問題だった。<a href="http://dsas.blog.klab.org/archives/51174693.html">KLabの記事</a>によると、日本語を含むFlash Lite 1.xのswfファイルをswfmill swf2xmlしてみたところ、&#8221;<strong>error : xmlEncodeEntitiesReentrant : input not UTF-8</strong>&#8220;というエラーメッセージがでて、xmlファイルの出力が途中で止まってしまうのは、Flash Lite 1.xで日本語swfの中の文字コードはcp932、Flash Lite 2.x以降のswf内文字コードはUTF-8のために起こるようだ。</p>
<p>swfmillがlibxml2を利用するときはかならずUTF-8になるため、cp932の文字コードの入ったswfファイルを扱えば文字が化ける。もっともな理屈です。</p>
<p>上記のKLabのサイトではこのcp932に対応したWindowsで利用できるバイナリも用意してくれていたので試してみました。swfmill利用時に　-e cp932 オプションを付けるだけです。</p>
<p>すると私が扱っているswfファイルでは以下のようなことになりました。</p>
<p><strong><span style="color: #0000ff;"> ・SWFからXMLファイルの生成はできる</span></strong></p>
<p><strong><span style="color: #0000ff;"> ・画像の入れ替えはできた</span></strong></p>
<p><strong><span style="color: #0000ff;"> ・一部文字が化けました。（「修」という文字から先の文字列）</span></strong></p>
<p><strong><span style="color: #0000ff;"> ・urlのリンク先変更ができない。</span></strong></p>
<p>自分の環境でビルドしないと問題は解決しないのだろうか・・・。</p>
<p>その他参考URL：</p>
<p><a href="http://tmty.jp/2009/04/16/generate_flash_lite_on_server/">http://tmty.jp/2009/04/16/generate_flash_lite_on_server/<br />
</a><a href="http://d.hatena.ne.jp/haru-komugi/20090213/1234541317">http://d.hatena.ne.jp/haru-komugi/20090213/1234541317</a></p>
<p><a href="http://d.hatena.ne.jp/haru-komugi/20090213/1234541317"></a></p>
<img src="http://jbar.jp/ishima/?ak_action=api_record_view&id=568&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://jbar.jp/ishima/it/swfmill%e3%81%a8flashlite.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://jbar.jp/ishima/it/swfmill%e3%81%a8flashlite.html" />
	</item>
	</channel>
</rss>

