Problem with identifying special characters in HTML

0

I have some problems with identifying special characters in the database. I do the UTF-8 decoding in the database:

ALTER DATABASE biblioteca CHARACTER SET utf8 COLLATE utf8_unicode_ci;

And also in HTML:

<meta http-equiv="Content-Type" content="text/html" charset="utf-8">

But the characters still do not work.

Is there any property for decoding by PHP?

    
asked by anonymous 07.12.2018 / 00:14

1 answer

0

I had the same problem a while ago following the solution, use after the connection:

mysqli_query($conexão, "SET NAMES 'utf8'");
    
07.12.2018 / 03:00