Recently I finished (more or less) converting a Perl/CGI/MySQL website application to use UTF-8 throughout.
The CGI module and the DBI module currently have lousy character encoding support, so I created Perl packages to fix them (relatively) transparently.
Here’s how, and here’s my code:
UPDATE: I’ve just updated the code based on others’ feedback, for which, many thanks. See comments below. (Jan 2007)
Continue reading

![[Key layout on a British PC keyboard: <shift>-apostrophe gives a @]](/images/keyboards/keyboard-gb-pc.jpg)