I was wondering if anyone can shed some light on this matter.
I am attempting to load an html file into a text area box so I can edit the file.
When I load the file, any apostrophes change into ? signs (question mark)
I am also having problems with the british pound sign.
Can someone tell me what I am doing wrong and also is there any special php that is needed to save the file afterwards also.
Thanks in advance for any help.
$filename = "../templates/email/letter.html";
$fp3 = fopen ($filename, "rw");
if (!$fp3) {
die("unable to open $filename");
}
$content = fread ($fp3, filesize ($filename));
echo "<textarea rows='12' cols='60' name='content'>\n";
echo "$content";
echo "</textarea><br><br>";
fclose ($fp3);