| Function Summary |
| utf8_basename | UTF8-safe basename() functionbasename() has some limitations and is dependent on the locale setting
according to the PHP manual. |
| utf8_case_fold | Case folds a unicode string as per Unicode 5.0, section 3.13 |
| utf8_case_fold_nfc | Assume the input is NFC:
Takes the input and does a "special" case fold. |
| utf8_case_fold_nfkc | Takes the input and does a "special" case fold. |
| utf8_chr | Converts an NCR to a UTF-8 char |
| utf8_clean_string | This function is used to generate a "clean" version of a string.
|
| utf8_convert_message | Trying to convert returned system message to utf8PHP assumes such messages are ISO-8859-1 so we'll do that too
and if it breaks messages we'll blame it on them ;-) |
| utf8_decode | Implementation of PHP's native utf8_decode for people without XML support |
| utf8_decode_ncr | Convert Numeric Character References to UTF-8 charsNotes:
- we do not convert NCRs recursively, if you pass & it will return &
- we DO NOT check for the existence of the Unicode characters, therefore an entity may be converted to an inexistent codepoint |
| utf8_decode_ncr_callback | Callback used in decode_ncr()Takes a NCR (in decimal or hexadecimal) and returns a UTF-8 char. |
| utf8_encode | Implementation of PHP's native utf8_encode for people without XML support
This function exploits some nice things that ISO-8859-1 and UTF-8 have in common |
| utf8_encode_ncr | Replace all UTF-8 chars that are not in ASCII with their NCR |
| utf8_encode_ncr_callback | Callback used in encode_ncr()Takes a UTF-8 char and replaces it with its NCR. |
| utf8_htmlspecialchars | A wrapper for htmlspecialchars($value, ENT_COMPAT, 'UTF-8') |
| utf8_normalize_nfc | A wrapper function for the normalizer which takes care of including the class if required and modifies the passed strings
to be in NFC (Normalization Form Composition). |
| utf8_ord | Converts a UTF-8 char to an NCR |
| utf8_recode | Recode a string to UTF-8If the encoding is not supported, the string is returned as-is |
| utf8_str_replace | UTF8-safe str_replace() function |
| utf8_str_split | UTF-8 aware alternative to str_split
Convert a string to an array |
| utf8_strlen | Return the length (in characters) of a UTF-8 string |
| utf8_strpos | UTF-8 aware alternative to strpos
Find position of first occurrence of a string |
| utf8_strrpos | UTF-8 aware alternative to strrpos
Find position of last occurrence of a char in a string |
| utf8_strspn | UTF-8 aware alternative to strspn
Find length of initial segment matching the mask |
| utf8_strtolower | UTF-8 aware alternative to strtolower
Make a string lowercase
Note: The concept of a characters "case" only exists is some alphabets
such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does
not exist in the Chinese alphabet, for example. |
| utf8_strtoupper | UTF-8 aware alternative to strtoupper
Make a string uppercase
Note: The concept of a characters "case" only exists is some alphabets
such as Latin, Greek, Cyrillic, Armenian and archaic Georgian - it does
not exist in the Chinese alphabet, for example. |
| utf8_substr | UTF-8 aware alternative to substr
Return part of a string given character offset (and optionally length)Note arguments: comparied to substr - if offset or length are
not integers, this version will not complain but rather massages them
into an integer.
|
| utf8_ucfirst | UTF-8 aware alternative to ucfirst
Make a string's first character uppercase |
| utf8_wordwrap | UTF8-compatible wordwrap replacement |