> _text = "This is some really 'extraordinary' text read from a file > somewhere" import string string.replace(_text,"'","''") ... and then it should work HTH S.