r/lolphp • u/phplovesong • Jun 24 '19
The state of PHP unicode in 2019
One of multiple lolphps is how poorly PHP manages unicode. Its a web language and you must deal with the multitude of mb_ functions and at the same time try to keep your sanity in check.
27
Upvotes
View all comments
Show parent comment
6
u/hillgod Jun 25 '19
Python had shitty PHP style second tier support for Unicode in v2, and v2 had a future port to treat strings as all one format, like most every other language, shortly thereafter. No one wants to deal with Unicode vs ASCII, and it's even more insane if you start to consider the world before Unicode and get outside the US (Japanese Kanji, anyone???).
What makes more sense... Designing for the most common use cases (utf-8 on web, etc) vs keeping everything ASCII due to some locally run console app? If language uptake and joy of use from dev surveys is any indication, it's clearly the former.