Solar_Json::_utf82utf16()

protected string Solar_Json::_utf82utf16 ( string $utf8 )

Convert a string from one UTF-8 char to one UTF-16 char.

Parameters

  • (string) $utf8: UTF-8 character

Returns

  • (string) UTF-16 character

Description

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 multibye string extension.



Local