Possible duplicate:
Utf-8 all through
Search high and low for a solution. I tried many options before posting the question.
What do I need for the names to appear the same on the phpMyAdmin and html pages? Could this be achieved?
EDIT 1: It would seem to be a mysql problem. What for? Because the php generated html page will always show the correct characters. At the moment, only the database is showing this incorrectly.
EDIT 2: Clarification. With the initial settings shown in the snapshot of the code and images below,
- Enter João and submit
- Joà £ o is displayed in the database
- Display João after reboot
Adding mysqli_query ( $link, 'SET NAMES utf8' )
- Enter João and submit
- João is displayed in the database
- Jo o is displayed after reboot
end Edit 2
In the mysql database viewed with phpMyAdmin: 
Elements are displayed in the database as follows: (I changed the first João to look correct in the database)

And on the html page with a set of encoding, the names look like (the order is changed and changed with black diamond)

Encoding: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
I tried changing the column sorting to utf8_bin, utf8_general_ci, utf8_unicode_ci, all unchanged in both directions. The document (BBEdit) was also changed from UTF-8 to UTF-8 (with BOM), ISO Latin 1 and Windows Latin 1. Several of them created more black diamonds, which made the problem even worse. (Installed in UTF-8 on images) I even tried preg_replace ã, é, etc. With encoded equivalents.
In short, João is entered on the page (content type above), Joà £ o is in the database, and João comes to the html page when updating.
We are looking for ideas. Thanks.