I have a small issue:
I recieve few paramaters via ajax and make a sql query. Simple, but this query has some special characters(brazilian) and my query looks like that(as I've made a echo):
SELECT neigh
FROM address_bd
WHERE
state ="AL"
AND city ="Maceió"
GROUP BY neigh
ORDER BY neigh ASC
and in the script is:
$sql = "
SELECT neigh
FROM address_bd
WHERE state =\"$state\"
AND city =\"$city\"
GROUP BY neigh
ORDER BY neigh ASC
";
Running it in phpmyadmin return the correct result, but in the script gives 0 results. My sql row has utf8_general_ci. Does anyone have any idea? Thank you.
AND here comes the response:
SET character_set_client = utf8;
This resolved the issue. Thank you all and especialy to Inca for sending the link. Thank you again