Jump to content

apostrophe fread problem! HELP!


champoi

Recommended Posts

my program opens a text file that was stored earlier, but the problem is that when i echo it, the apostrophe that was stored in the text file, when echoed, is replaced by a question mark in the page displayed, help! these are my codes:

 

<?php
  $f1 = fopen($directory."/geninfo.txt","r");
  echo "<p>".nl2br(fread($f1,"23554432"))."</p>";
  fclose($f1);
?>

Link to comment
https://forums.phpfreaks.com/topic/134618-apostrophe-fread-problem-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.