On Feb 8, 12:28 pm, Chris Rebert <c... at rebertia.com> wrote: > print a.encode("string-escape") How could I miss that? I was on that doc page already. Should have typed "/escape" in the browser ;-) Thanks, robert