Mike West — Web Application Developer

Italian, apparently, is full of single quotes. I’m sure they’re not called “single quotes” in Italian, and I’m sure that the Italian people didn’t have exactly my code in mind when they settled upon that convention… That said, my broken code is still obviously their fault.

Note to self: Escape all quotes. At a minimum, do something like:

$title =~ s/\'/\\\'/g;

before writing out strings for use later. Potentially even use correct typography with code like:

$title =~ s/\'/’/g;

depending on context.

Mike West is a web application developer living in Munich, Germany. Professionally programming for the web since 2000, he's available for contract work now a web developer at Yahoo! Germany. Read Mike's bio, or drop him an e-mail.

Recent Articles


Comments

… In italian those annoing “single quotes” are called “apostrofi” and are used a lot for word truncation. We are sorry ;-)

Posted By: Francesco 20. July 2007, 22:18

Comments Closed

Comments are closed after 6 weeks to avoid the icky comment spam we all loathe. Sorry if you missed the opportunity, but you can always drop me an e-mail!

flickr Photostream

Yahoo!'s Munich Office
atom:title
atom:title
atom:title