private function utf16to8($code) { return mb_convert_encoding(pack('H*', $code), 'UTF-8', 'UTF-16BE'); }