Re: [Python-Dev] logging package vs unicode

2010-08-03 Thread INADA Naoki
FWIW, I think the best way to avoid UnicodeError is: Don't use chars out of ASCII in Python2. I prefer '%r' to '%s' because it escapes chars not printable or out of ASCII with backslash. On Mon, Jul 5, 2010 at 9:34 PM, Chris Withers wrote: > Hi All, > > The documentation for the logging package d

[Python-Dev] logging package vs unicode

2010-07-05 Thread Chris Withers
Hi All, The documentation for the logging package doesn't include any mention of unicode. What's the recommended usage in terms of passing unicode vs encoded strings? How does this differ from Python 2 to Python 3? cheers, Chris -- Simplistix - Content Management, Batch Processing & Python