2
I’m using php on the html page to validate a form. When the database retouches the text to the page php is not displaying the result with special characters. Where is the error?
Page:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
Table of the MYSQL database:
utf8_unicode_ci
Result of PHP
:
echo "<ul>";
echo "<li>";
echo "<a data-toggle='modal' href='{$link}'>" ;
echo "{$titulo} </a>- {$descricao}";
echo "</li>";
echo "</ul>";
Try using "echo utf8_decode($variavel);"
– Fleuquer Lima
@Williancoqueiro sees if this file is also saved in UTF-8!
– Igor Mello
@fleuquerlima tested the 2 and did not work. Thanks more for the help.
– Willian Coqueiro