I made a data entry into a table in my database using the command load
and the fields with accent were correct, such as Sofá Nápoli
, but when changing any record that contains accent through my control panel the record sent to the bank is thus Sofá Nápoli
, my table is coded as utf8_general_ci
.
When I search my site for the term Sofá Nápoli
the record is not displayed.
The redemption of my variable when it is typed into the search field looks like this:
$_SESSION['s'] = addslashes($_REQUEST['s']);
$pesquisa = $_SESSION['s'];
$pesquisa = (strtolower($pesquisa));
I could not find a solution that worked right