Any way to convert a regular string in ActionScript 3 to a ByteArray of Latin-1 Character Codes?
20,088
byteArray.writeMultiByte(string, "iso-8859-1");
Author by
Mike Keen
I'm a software artist with a passing interest in entrepreneurialism. I like to make cool stuff on my own terms.
Updated on December 19, 2020Comments
-
Mike Keen over 3 years
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?
-
Mike Keen over 15 yearsYeah, I thought that would do the trick as well, but it actually manages to write the characters themselves instead of the character values. I may be overlooking something obvious.
-
aaaidan over 15 yearsCan you explain what the difference between the "characters themselves" and "character values" is?