Charset provides character set encoding and decoding for JavaScript.
UTF8:Charset
[read-only]
The UTF8 character set encoder and decoder.
Implementation
public static function get UTF8():Charset
public function decode(buf:ByteBuffer):String
Decodes a ByteBuffer into a String. Bytes for partial characters remain
in the ByteBuffer after decode has completed.
Parameters
Returns
public function encode(str:String, buf:ByteBuffer):void
Encodes a String into a ByteBuffer.
Parameters
| str:String — text the String to encode
|
|
| buf:ByteBuffer — buf the target ByteBuffer
|