Supporting UTF-8 in PHP
Posted by Jonathan Ng | Filed under Technical
Up till now, I didn’t mention much about the little project I’m working on now: a RSS feed reader. It’s called SpoonFeed, as I want to literally spoon feed users with news, LoL.. One of the reasons for the discretion is that hardly any work has been done on it. I’m still working on the layouts and stuff like that. A basic model that allows adding and viewing feeds might take another week or two, depending on how tough advanced diploma is.
So I was working on scripts that’ll sort the feed items alphabetically, and I thought about Unicode characters. Throughout the project, I thought that enabling UTF-8 support only required minor tweakings like changing the charset in MySQL and the HTML output. But boy was I wrong. I did some testing and I was sure that it was a PHP code related problem since phpMyAdmin could display UTF-8 characters in my sample database without a problem. Read the rest of this entry »
Tags: php