Talk in English - US at Longhorn PHP Conference 2021
View Slides: https://www.slideshare.net/colinodell/demystifying-unicode-longhorn-php-2021
Short URL: https://joind.in/talk/9bdc2 (QR-Code (opens in new window))
ASCII is so 1963. Nowadays, computers must support a broad range of different characters beyond the 128 we had in the early days of computing - not just accents and emojis but also completely different writing systems used around the globe. The Unicode standard packs a whopping 143,859 characters into an elegant system used by over 95% of the Internet, but PHP's string functions don't play nicely with Unicode by default, making it difficult for developers to properly handle such a wide array of possible user inputs.
In this talk, we'll explore why Unicode is important, how the various encodings like UTF-8 work under-the-hood, how to handle them within PHP, and some nifty tricks and shortcuts to preserve performance.