Problem with HTML special character identification

Asked

Viewed 68 times

0

I’m having some problems in identifying special characters from the database. I decode in UTF-8 in the database:

ALTER DATABASE meuBanco 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 don’t work.

Is there any property for decoding by PHP?

1 answer

0


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

mysqli_query($conexão, "SET NAMES 'utf8'");
  • Thank you very much!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.