Re: "SyntaxError: Non-ASCII character '\xc2'...", was Re: Is there a nicer way to do this?

2007-10-05 Thread Victor B. Gonzalez
On Friday 05 October 2007 3:33:43 am Peter Otten wrote: > 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

"SyntaxError: Non-ASCII character '\xc2'...", was Re: Is there a nicer way to do this?

2007-10-05 Thread Peter Otten
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 proble