Solved insert into...values (...accents...)
-
Please, how to solve problems like:
QString a = "macdonald's";
"insert into clients (name) values ('" + a + "')";this accents <'> is the problem.
-
Hi,
IIRC you have to double the single quote if you want to insert one in your database field.
Hope it helps
-
And you might be able to do it with
a.replace("'","''");
-
So many thanks. It works !