after querying mysql db using the code below, I created an html file:
$myFile = "page.htm";
$ fh = fopen ($ myFile, 'w') or die ("cannot open file"); fwrite ($ fh, $ row ['text']); fclose ($ fx);
In msql db, text is encoded using utf8_general_ci. But I need to include it in the php webpage as below:
<?include('page.htm');?>
keeping in mind that the php webpage uses utf8 encoding in the header:
<meta http-equiv="content-type" content="text/html; charset=utf8" />
Now, if I write a few letters on db with a serious accent (è à ì) or a quotation mark, and I open page.htm directly, and on db I see that everything looks fine, but when I look at it on php on the page I I see a question mark instead of the ones I originally wanted. What for?! Thanks in advance!