Is there an easy way to get the byte length of a string in AS3? String.length works in many cases, but breaks if it encounters unicode mulibyte characters.
(in this particular case, I need to know this so that I can send messages sent over a TCP socket with a message length. This is in the standard netstring format, for example, "length: message",).
Ender source share