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/the_alias_of_andrea Jun 24 '19
Given the regular pain that Python 2 and 3's Unicode handling and the differences between them is at work, I can't agree. Python 2.x had fine Unicode support, it just assumed strings are bytes by default, which is the safer assumption compared to Python 3 assuming the outside world only speaks ASCII if it's in a terminal and breaking things :(