mxODBC and apostrophe's in strings

accattatevillo ^NOSPAM^ at nowhere.org
Wed Sep 12 09:06:37 EDT 2001



> _text = "This is some really 'extraordinary' text read from a file
> somewhere"

import string
string.replace(_text,"'","''")

... and then it should work

HTH
S.



More information about the Python-list mailing list