Code Comments, Linkage

Linkage: Internationalisation with PHP, Apache & MySQL

This article posted by Florian Eibeck on setting up php, Apache, and MySQL for dealing with international character sets is a good overview of the groundwork required to support a UTF-8 compliant web app.

As Florian rightly points out, there are non-UTF-8 safe functions lurking in php to upset the apple cart if you’re not aware of them. Although strlen() may not return the right result with double-byte characters, it doesn’t do your content any harm – there are plenty of others that do mangle double-byte content.

From my own experience, once the environment (Apache, MySQL) was set up correctly it’s those unsafe php functions that cause the most grief, both in tracking down the culprits and finding a work around. It is rewarding when it finally comes together, though – there’s something quite cool about seeing all manner of Scandinavian languages sitting on screen alongside Japanese and English in a web app created by your own hand. 🙂

Continue Reading
Journal

Contrast

Having spent the week in London, seamlessly falling back into the old routine of rushing even when I wasn’t in a hurry, the time spent this afternoon in Helensburgh was excruciatingly slow in terms of pace.

I’m sure Henry Rollins once waxed lyrical about people robbing him of valuable seconds of his life due to dithering in front of him in queues. That kind of thing does my head in, too. You’re there for no other reason than to pay for the goods you wish to buy.

Continue Reading
Journal

Liverpool and Back – 530 Miles @ 47.5 mpg

Fliss and I made a quick trip back to the house in Liverpool at the weekend there, leaving on Saturday morning and returning on Sunday afternoon. Normally I wouldn’t have wasted the fuel on such a short trip, but we needed to go back to check on the place, collect some mail, cut the grass, and bring back some other odds and ends now that we’re more or less living back in Scotland.

Continue Reading