MySQL 8.0 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_escape_string()
Note
Do not use this function.mysql_escape_string() does not have arguments that enable it to respect the current character set or the quoting context. Usemysql_real_escape_string_quote() instead.