Any way to convert a regular string in ActionScript 3 to a ByteArray of Latin-1 Character Codes?

Mike Keen picture Mike Keen · Dec 11, 2008 · Viewed 19.9k times · Source

I am having no problem converting a string to a byteArray of UTF-16 encoded characters, but the application I am trying to communicate with (written in Erlang) only understands Latin-1 encoding. Is there any way of producing a byteArray full of Latin-1 character codes from a string within Actionscript 3?

Answer