djcsdy / swfmill

Generate or decompile Adobe Flash SWF files using an XML dialect. Inspect and modify the XML by hand, or by using a built in XSLT processor.
http://www.swfmill.org/
GNU General Public License v2.0
131 stars 28 forks source link

“ANSI” strings decoded as ISO-8859-1, but are actually Windows-1252 #30

Open djcsdy opened 10 years ago

djcsdy commented 10 years ago

In SWF 5 and below, string values are either “ANSI” or Shift-JIS.

It turns out that when Adobe say “ANSI”, they mean Windows-1252. However, swfmill decodes strings as if they are ISO-8859-1 encoded.

Differing characters include U+201C LEFT DOUBLE QUOTATION MARK, which is 0x93 when encoded in Windows-1252, but not encodable in ISO-8859-1.