Bruno Lustosa wrote:
> On Feb 13, 2008 5:41 PM, Wade Smart <[EMAIL PROTECTED]> wrote:
>>  Im importing data from another site and Im having a bit of a problem. I
>>  have what my browser calls: invalid characters. Its the degree symbol
>>  when used with 'F or 'C. There are others though too.
> 
> This is probably a problem with different character sets. What are you
> using? UTF-8? ISO8859-1?
> Check to see if you and the other site are using the same character
> set. The response header you are looking for is the "Content-type".
> Most probably you are using different ones, and you'll be able to
> solve this problem using some conversion (for examplo, utf8_encode() /
> utf8_decode(), if UTF-8 is involved).
> 
>>  I wrote a script to find chr(248) and change it to ' but its not
>>  working. So, is there a way to get the character to show up in the first
>>  place?
> 
> What is the site you are importing data from, and how is your script
> and site set up?
> 
02132008 1407 GMT-6

This is the meta header:
<meta http-equiv="content-type" content="application/xhtml+xml; 
charset=ISO08859-1" />

Its from the National Weather Service site. I helping out on a weather 
site that extracts data to be used on citizens band internet radio sites.

what Im doing now is using $file = file("site"); and then going through 
$file with a foreach looking for this char to remove.

Wade

Reply via email to