Some string contains quotes and other characters (aOE "has fallen), as well as text with Russian characters:
strinnng = "аоЭ\"пал" I try to screen these signs (there is such a function in the _mysql_connector connector). The output is a byte string. Why then what to do with it? I get errors = ((((
tyu = cnx.escape_string(strinnng) Then I make a request in the database
cnx.query('INSERT INTO test (title) VALUES ("%s")' % tyu) Help who knows?