pub fn encode_wtf8_from_ucs2(ucs2: &[u16]) -> Vec<u8> ⓘ
WTF-8 encode a UTF-16/UCS-2/JS string (as &u16) into Vec<u8>. Uses ucs2decode to convert to codepoints, then encodes as WTF-8.
Vec<u8>