I’ve previous been writing about why PHP and Unicode/UTF-8 is a bad combination. Even though UTF-8 in PHP should (for now) be avoided, it is sometimes a necessity to use it. As UTF-8 can be quite problematic for some people to use, I thought I this time should write about how to actually use it properly. In this first part I’ll deal with the basic handling of UTF-8 in PHP using the PHP extensions mbstring and/or iconv.

Recent Comments