Re: error to use cursor to save escaped characters

2012-07-30 Thread fanchyna
but just want to let you know that my INSERT INTO statement was correct. you can google "insert mysql" to check. the "INSERT into" support three forms. On Wednesday, July 25, 2012 8:49:07 PM UTC-4, Dennis Lee Bieber wrote: > > On Wed, 25 Jul 2012 14:40:04 -0700 (PDT), fanchyna > declaimed the

Re: error to use cursor to save escaped characters

2012-07-30 Thread fanchyna
Good answer. Using the c.execute(command,parameter) solves my problem. On Wednesday, July 25, 2012 8:49:07 PM UTC-4, Dennis Lee Bieber wrote: > > On Wed, 25 Jul 2012 14:40:04 -0700 (PDT), fanchyna > declaimed the following in gmane.comp.python.django.user: > > > > > > import os > > > import

error to use cursor to save escaped characters

2012-07-25 Thread fanchyna
I have a url which I want to save into the MySQL database using the "cursor" tool offered by django, but I keep getting the "not enough arguments for format string" error because this url contains some escaped characters (non-ascii characters). The testing code is fairly short: #test.py# >