I have a trouble with quotes after convert from NSString to const char*
i have an sql query in NSString like
INSERT INTO table VALUES(“one”,”two”,”three”)
for sqlite3_exec i need a cons char, i tried to convert string via
[queryS UTF8String]
or
[queryS Cstring]
but it remove all quotes from text and it looks like
INSERT INTO table VALUES(one,two,three)
how i can make a const char from NSString with quotes?
I have a trouble with quotes after convert from NSString to const char* i
Share
Are you escaping the NSString ?
I just executed this:
And got this: