Hi Guys,
I am having a reading from file problem, it is not that I cannot read from the file it is that it outputs a � everytime a ’ pops up in my file.
Anyone have any idea what to do?
This is an example of the file:
09h00 Housemasters’ Committee Meeting (KCC)
And this is what is outputs:
09h00 Housemasters� Committee Meeting (KCC)
And here is the code:
[php]
while(substr($get,4,2) < $date+1 && $bool != false){
if(bool($get)){
$bool = false;
break;
}
$get = fgets($file);
if(!in_array(substr($get,0,-2),$months) && !in_array(substr($get,0,3),$days)){
echo $get."
";
}
}
echo ‘
The application of this is to splice apart a text calendar to display it.
Thanks,
SACoder