[Tutor] Problem with IDLE in Windows

Joerg Woelke lumbricus@gmx.net
Fri, 7 Sep 2001 12:53:12 +0200


On Fri, Sep 07, 2001 at 11:17:37AM +0200, Charlie Clark wrote:
> Dear list,
> 
> can anyone tell me why this line causes problems when I try to edit the 
> file in IDLE under windows? 

No sorry! 

It seems that the ´ is a unicode symbol 
> that causes IDLE to throw a unicode -> ascii error and delete the file. 
> Does this count as a bug?
> 
> content = "some text"
> content = content.replace( "'":"´")

Have you tried "\264"?

> 
> Any suggestions for an alternative? I need to replace simple apostrophes 
> with something else as they get inserted into an SQL statement which 
> subsequently doesn't work if they are kept.
> 
> Thanx
> 
> Charlie
> 

HTH,HAND
J"o!

-- 
"It's a dog-eat-dog world out there, and I'm wearing Milkbone underware."
-- Norm, from _Cheers_