jump to navigation

Actionscript 2 with UTF8 and BOM May 25, 2010

Posted by maxmil in : Flash , trackback

This none has had me baffled for a while….

My AS2 source code files are all UTF-8. However in one of these i have extended characters (its a function that strips accents and the like from a text string).

With MTASC compiler this was working just fine but with the MMC compiler String.indexOf does not work.

After some poking i have found the problem. In order for flash to compile the files correctly it need the Byte Order Mark (BOM) to be included in all Unicode files.

No idea if this is still the case with AS3.


no comments yet - be the first?