My mySQL database create shows
CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */
The mySQL field collation shows utf8_unicode_ci.
The Access export specifies a Code Page of Unicode (UTF-8).
The importing query is
LOAD DATA LOCAL INFILE '/home/foo/Snapshot/tblImages.txt' INTO TABLE `tblImages` CHARACTER SET utf8 FIELDS OPTIONALLY ENCLOSED BY '|' TERMINATED BY ';' LINES TERMINATED BY '\n';
Before drawing the page PHP issues
header('Content-Type: text/html; charset=utf-8');
In the <head> I have
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
If I open the Access exported txt file in UltraEdit under Windows 7 I see correct accents:
Plan d’une propriété située dans la première Municipalité (1000 Dauphine corner St. Philip)
If I query the data in mySQL monitor under Linux I see:
Plan dâune propriété située dans la première Municipalité (1000 Dauphine corner St. Philip)
And when I echo the query output to a browser I see:
Plan d?une propri?t? situ?e dans la premi?re Municipalit? (1000 Dauphine corner St. Philip)
If I preface the other queries with:
SET NAMES utf8;
Then in Webkit browsers I see:

What am I missing here?
The issue was resolved by adding these queries to the connection:
And THEN a call to
utf8_encode()wrapping the output.The function call ought not be needed given all of the headers and Content-Type settings…?