Zend\Json\Encoder::_utf82utf16
Convert a string from one UTF-8 char to one UTF-16 char.
Normally should be handled by mb_convert_encoding, but provides a slower PHP-only method for installations that lack the multibyte string extension. This method is from the Solar Framework by Paul M. Jones
Signature
protected function _utf82utf16(string
$utf8 )
Parameters
$utf8
— string- UTF-8 character
Returns
- string
- UTF-16 character