Function unicodeToUtf8
Takes an array of ints representing the Unicode characters and returns a UTF-8 string. Astral planes are supported ie. the ints in the input can be > 0xFFFF. Occurrances of the BOM are ignored. Surrogates are not allowed.
Returns false if the input array contains ints that represent surrogates or are outside the Unicode range.
Located at check_UTF8.php
mixed |
& $arr |