On Sun, Feb 12, 2012 at 1:43 PM, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > Paul Moore wrote: >> I'd like to write code to do the same >> job without needing to lie about what I know. I'm now 100% convinced >> that encoding="ascii",errors="surrogateescape" is the way to say this >> in code. >> Perhaps there should be a more shortwinded way of > spelling this? See http://bugs.python.org/issue13997 , mentioned earlier in the thread. Cheers, Chris