From tswast at gmail.com Sun May 10 04:24:44 2009 From: tswast at gmail.com (Tim Swast) Date: Sat, 9 May 2009 21:24:44 -0500 Subject: [Pydotorg-www] Unicode Titles and Links Message-ID: <3d09c9170905091924h50741f35vb636b9c6feda1890@mail.gmail.com> Hello, I have been using a slightly modified version of the build system from the beta.python.org subversion repository for one of my personal sites. In my efforts, I noticed that the Unicode support isn't too great... I tried to have a an accent or two in the title and navigation bar, and I was greeted some not too friendly UnicodeDecodeErrors. I've attached a patch that addresses this issue. I tested building beta.python.org with my patch applied, and it seemed to work fine. In looking at the mailing list archives, I know that at least python.it is also using this build code, so perhaps this will be of use to others as well. I would've liked to have went a different route (i.e. using the codecs.open() function), but either the python email module is terrible in the way it handles Unicode or there are some documents that are not utf-8 encoded... Hope this helps someone, -- Tim Swast -------------- next part -------------- A non-text attachment was scrubbed... Name: beta.python.org.r12268.unicode.patch Type: text/x-patch Size: 1789 bytes Desc: not available URL: