Function utf8_to_unicode
Takes an UTF-8 string and returns an array of ints representing the Unicode characters. Astral planes are supported ie. the ints in the output can be > 0xFFFF. Occurrances of the BOM are ignored. Surrogates are not allowed. Returns false if the input string isn't a valid UTF-8 octet sequence and raises a PHP error at level E_USER_WARNING Note: this function has been modified slightly in this library to trigger errors on encountering bad bytes
Package: utf8
Author: <hsivonen@iki.fi>
See:
See: http://hsivonen.iki.fi/php-utf8/
Located at vendor/joomla/string/src/phputf8/utils/unicode.php
Author: <hsivonen@iki.fi>
See:
utf8_from_unicode()
See: http://hsivonen.iki.fi/php-utf8/
Located at vendor/joomla/string/src/phputf8/utils/unicode.php
Parameters summary
string |
$str |
UTF-8 encoded string |
Return value summary
mixed
|
array of unicode code points or FALSE if UTF-8 invalid |