PHP html sayfası charset sorunu dahil

0 Cevap php

Aşağıdaki kodu kullanarak bir mysql db sorgulama sonra ben bir html dosyası oluşturulan adres:

    $myFile = "page.htm";

$fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $row['text']); fclose($fh);

On the msql db the text is encoded using utf8_general_ci. But i need to include it in a php web page as shown below:

 <?include('page.htm');?>

php web sayfası başlığında utf8 karakter setlerini kullanır akılda rulman:

<meta http-equiv="content-type" content="text/html; charset=utf8" />

Now if i write on the db some letters with grave accent (è à ì) or a quote character and i open directly page.htm and on the db i see it all looking ok, but when i view it on the php page i see a question mark � character instead of those I originally wanted. Why?! Thanks in advance!

0 Cevap