One thing that really annoy me these days is the unrestricted enthusiasm for PHP and Unicode, primarily in the form of UTF-8. These people seem to think that Unicode is some fantastic thing they just have to use even though a single byte charset like ISO-8859-1 is more than sufficient for their need. Don’t get me wrong, Unicode is good and everything, but not when you’re using PHP. Why? Because PHP by itself does not support Unicode. Now I know alot of people will object and say that there is mbstring. If you’re one of them, please read this carefully: mbstring is a Swiss cheese. Now I know alot of people is not using mbstring and basicly is using Unicode (most likely UTF-8) blissfully unaware of it’s dangers. So before I get into why mbstring is a horrible piece of coding, I’d like to explain why you shouldn’t use Unicode without some measures. more…

Recent Comments