Convert encoding to flash actionscript 3

Is there any function like php mb_convert_encodingthat can convert encoding to another?

I want to convert utf-8 text sent in the input field inside the flash to the encoding iso-8859-7.

+3
source share
1 answer

Yup, try flash.utils.ByteArray::writeMultiByte():

var bytes:ByteArray = new ByteArray();
bytes.writeMultiByte("Δ", "iso-8859-7");  // Capital delta
assertEquals(0xc4, bytes[0]);
+3
source

Source: https://habr.com/ru/post/1699463/


All Articles