Code isses with multibyte UTF-8 characters
Now you’ve intructed browsers that you’re only using UTF-8, the next issue will be making sure that the string operations you perform in your code will behave correctly when given multibyte UTF-8 characters. This doesn’t mean you need to throw out all use of PHP‘s native string functions, regular expressions and otherwise, but that you need to consider where PHP needs to understand what a multibyte character is. In general, if we call the needle to be a string you are, in some way, searching for and the haystack to be the string you are searching in, you will need to worry when the needle could contain multibyte (non-ASCII) characters. This is expanded in under common problems but a couple of examples.