"SyntaxError: Non-ASCII character '\xc2'...", was Re: Is there a nicer way to do this?
Peter Otten
__peter__ at web.de
Fri Oct 5 03:33:43 EDT 2007
Victor B. Gonzalez wrote:
> anyhow, I keep getting "SyntaxError: Non-ASCII character '\xc2'..." on line 5.
> anyone know what this is?
I too had that problem with KNode. Leading space consists of NO-BREAK SPACE
(unichr(160)) which translates to '\xc2\xa0' in UTF-8. As I don't see this
problem here (using pan) I suspect it may be specific to KMail/KNode.
Peter
More information about the Python-list
mailing list