[swfmill] Patch: Specify text encoding for string in swf
INADA Naoki
inada-n at klab.org
Mon Jan 21 04:36:19 PST 2008
Hi, all.
Text encoding of inner swf strings is environment-dependent
before SWF Version 6. For example, strings encoded in cp932 in Japan.
And Flash Lite 1.x based on Flash 4 is still lot in use for
celler phones in Japanese.
"swfmill swf2xml" fails for such swf files because swfmill insert
inner swf string into libxml doc tree without encoding conversion.
(text encoding must be UTF-8 in libxml doc tree.)
I fixup swfmill to convert text encoding in swf2xml and xml2swf.
And attached patch is the fix.
* "swfmill -e cp932 swf2xml foo.swf bar.xml" converts encoding from
cp932(in swf) into UTF-8(in xml).
* "swfmill -e cp932 xml2swf bar.xml foo.swf" converts encoding from
UTF-8(in xml) into cp932(in swf).
Do anyone want this option?
I want this patch applied to swfmill. But if no one wants this option,
making swfmill Japanese branch is better for me, maybe.
--
Sorry about my poor English.
INADA Naoki <inada-n at klab.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: encoding.patch
Type: application/octet-stream
Size: 8911 bytes
Desc: not available
Url : http://osflash.org/pipermail/swfmill_osflash.org/attachments/20080121/ee9db7b0/attachment.obj
More information about the swfmill
mailing list