Method unicode_to_string()
- Method
unicode_to_string
stringunicode_to_string(string(8bit)s,int(0..2)|voidbyteorder)- Description
Converts an UTF16 byte-stream into a string.
- Parameter
s String to convert to UTF16.
- Parameter
byteorder Default input byte-order. One of:
0Network (aka big-endian) byte-order (default).
1Little-endian byte-order.
2Native byte-order.
Note that this argument is disregarded if
sstarts with a BOM.- See also
Charset.decoder(), string_to_unicode(), string_to_utf8(), utf8_to_string()