Skip to content

Entries published on November 10, 2007

1 entry published on this date. See also: all entries published in November 2007, full archive.

Unicode in the real world

Django’s Unicode branch merged back over the summer, but I imagine there are a lot of people who are still using pre-Unicode versions of Django and so haven’t started updating their code yet (it was several months before I had fully updated this site, for example). For the most part, updating to work with post-Unicode Django is pretty easy (and made even easier by Malcolm’s handy checklist), but there are still some things you’ll need to be careful about; one in particular is how to handle external APIs you need to work with, which aren’t guaranteed to support or work properly with Django’s all-Unicode internals.

Unicode and bytestrings

First off, it’s import to understand the difference between the two types of strings Python currently uses (this distinction will be going away in Python 3.0, where the current unicode type will become the only string type in Python): bytestrings, which …

Entry published November 10, 2007. Read full entry.