decode

Decodes a UTF-16 string.

This function will automatically detect BOMs and handle endianness where applicable.

Meta