News for hackers. Stuff that matters.
Re:OMG Ponies (Aka Humanity: Epic Fail) by simonw on Tuesday November 03, 2009 @05:16AM (#919029)
You can get the correct result by normalizing the string first:

    >>> import unicodedata
    >>> print unicodedata.normalize('NFC', u'Les Mise\u0301rables')[::-1]
    selbarésiM seL
Re:OMG Ponies (Aka Humanity: Epic Fail) by fh on Tuesday November 03, 2009 @10:16AM (#919421)
That's in some sense even more broken: Not all combined characters have a normalized form, so the result is even less predictable. (I don't have an example ready.)