function phutil_utf8ize($string)Arcanist Technical Documentation ()
function phutil_utf8ize($string)
Arcanist Technical Documentation ()
Convert a string into valid UTF-8. This function is quite slow.
When invalid byte subsequences are encountered, they will be replaced with U+FFFD, the Unicode replacement character.
This function treats overlong encodings as invalid.
Parameters
string | $string | String to convert to valid UTF-8. |
Return
string | String with invalid UTF-8 byte subsequences replaced with U+FFFD. |
- Defined
- src/utils/utf8.php:15