That’s quite an interesting twist on Planet/Venus. I had previously thought that sites built by Planet were rather complete on their own, but using Planet to stuff a WordPress blog certainly sounds like fun.
Adam: just so there isn’t any confusion, when I said “amusing” I meant that in a strictly as a pejorative euphemism. I happen to have strong feelings about the importance of internationalization, and know that people can produce web sites that handle accented characters correctly, even with PHP.
Adam: remove_accents is an exemplary demonstration of morons at work: “there are some Œ characters in those feeds that give the code indigestion so I need to get rid of them.” Guess how often the rountine will end up getting patched with that approach? Unicode has 1,113,985 code points beyond US-ASCII. The routine currently covers 6. And anyhow, most of them cannot be usefully transliterated into ASCII.
The right approach is to get i18n right, which, as Sam said, can be done. (Even though PHP makes it unnecessarily difficult.)
While I certainly agree that the mentioned 6 lines of code is not the solution to i18n problems in general, one should keep a few points in mind when labeling me a moron:
There’s a bug in the WordPress function remove_accents (linked above) - the three special Danish characters are missing.
I created this to run a Danish planet (Venus).
The original function is called at the end.
The combination of PHP and WordPress makes it even more difficult to do i18n right...
This is strictly a cosmetic issue, it creates prettier URIs.
From the blogroll… O’Reilly’s “Rails Cookbook” Venus/WordPress integration WP Plugin: Planet Venus From around the web… err.the_blog.find_by_title(’Rake Around the Rosie’) tips for using rake...