Feature Request #2104
Remove the utf8 class and use mb_* functions instead
|Assignee:||Isaiah DeRose-Wilson||% Done:|
We should just require the mbstring extension, and delete the utf8 class. utf8::clean() is still handy and should be moved to the input library.
Removed utf8 class and related utf8 files. Some of the old utf8 functions can now be found in the new utf8 helper. Moved utf8::clean() into the input library. mbstring is now required. Refs #2104
Removed PCRE_UNICODE_PROPERTIES constant, install.php already checks for it (and it's required). Cleaned up new utf8 helper. Still need to write some unit tests to make sure the functions still work! Refs #2104
#2 Updated by Isaiah DeRose-Wilson about 5 years ago
There are a few (ok more than a few) functions in the utf8 class that don't have mb_* equivalents. Maybe a utf8 helper would be a good idea?
utf8::clean() -> move to input library because it can clean for any charset
utf8::is_ascii() -> move to string helper?
utf8::strip_ascii_ctrl -> move to string helper?
utf8::strip_non_ascii() -> move to string helper?
utf8::transliterate_to_ascii() -> Do we need it?
utf8::substr_replace() -> Do we need it?
utf8::ucfirst() -> arg.... why aren't there mb_* versions of these functions?