0
I entered a table into my database using the command load
and the fields with accentuation were correct, as for example Sofá Nápoli
, but by changing any record that contains accent by my control panel the record sent to the bank looks like this Sofá Nápoli
, my table is coded as utf8_general_ci
.
When I search my site by the term Sofá Nápoli
the record is not displayed.
The rescue of my variable when typed in the search field is like this:
$_SESSION['s'] = addslashes($_REQUEST['s']);
$pesquisa = $_SESSION['s'];
$pesquisa = (strtolower($pesquisa));
I couldn’t find a solution that worked
Hello @Dherik, thanks for the help, I made the change but the search field now gets the term so "non poly sofa".
– adventistapr
What happens when you use:
$string = html_entity_decode($string, ENT_QUOTES, "ISO-8859-1");
?– Dherik
Similarly the text looks like this: sofã¡poli
– adventistapr
Let’s simplify it then. What is the value of varTitle when it does:
var varTitle = html_entity_decode("Sofá Nápoli");
?– Dherik
Hello @Dherik, now the text is correct: Poly Sofa
– adventistapr