File Output

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 ‘

’;[/php]

The application of this is to splice apart a text calendar to display it.

Thanks,

SACoder

What encoding is used to create the file?

If you don’t know, what operating system (e.g. Windows) and text editor (e.g. Notepad) did you create it / edit it with?

Sponsor our Newsletter | Privacy Policy | Terms of Service