On Jan 3, 1:31 pm, Simon Willison <si... at simonwillison.net> wrote: > How can I tell Python "I know this says it's a unicode string, but I > need you to treat it like a bytestring"? u'Bob\x92s Breakfast'.encode('latin-1') -- Paul Hankin