02162008 0936 GMT-6
Some code is pulled from the Nataional Weather Service site - but its
coupled with data from local hardware. Depending on where you are in the
US it will pull from different pages. But I was informed that the file
this data is pulling from is a file created by a specific piece of
hardware, saved to a file, parsed by some code and made available as a
file.
This is from my phpinfo.php result:
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
And this is some of data printed on the page:
Average temperature 24.7 �F (-4.1 �C)
Average humidity 77 %
Average dewpoint 18.3 �F (-7.6 �C)
It is ISO-8859-1
I just typed it wrong. Sorry about that.
Wade
Bruno Lustosa wrote:
> On Wed, Feb 13, 2008 at 6:08 PM, Wade Smart <[EMAIL PROTECTED]> wrote:
>> This is the meta header:
>> <meta http-equiv="content-type" content="application/xhtml+xml;
>> charset=ISO08859-1" />
>
> Ok, they seem to be using ISO8859-1 (I wonder why the extra 0). What
> is the URL you are fetching the data from? The meta tag is only
> supposed to be used if the server doesn't send the proper Content-type
> header. If it sends, the meta tag is ignored.
>
>> what Im doing now is using $file = file("site"); and then going through
>> $file with a foreach looking for this char to remove.
>
> Fine fetching it using file(). What character set are you using on your site?
>