Re: [PHP] XML Encoding - with examples



On Tue, Jul 29, 2008 at 3:52 PM, Thiago H. Pojda <thiago.pojda@xxxxxxxxx> wrote:
That's weird. I just changed it to convert everything to UTF and things
appear ok on IE and messy in Firefox. I guess firefox isn't been nice to my
headers after all. It keeps saying the content is in ISO.

Thanks for your hints and your time. I'll move this to firefox list, as the
XML loads fine in IE (everything set to UTF, even the iconv is uncommented).


Did you change the header call too? The header in your original
example was ISO too:

header('Content-type: text/xml; charset = ISO-8859-1');

It should be:

header('Content-type: text/xml; charset=UTF-8');


Andrew
.



Relevant Pages

  • Re: Genius Wanted !!!
    ... IE renders the page header incorrectly. ... now I use Firefox! ... On a ctrl/reload ONLY the 'hyphen' named file goes awry. ...
    (soc.culture.scottish)
  • Re: Embed WMP Having SRC Point To ASPX Page
    ... a content-length header too for it to work). ... both work in FireFox. ... wont play it properly, but FireFox will. ... Digital Media MVP: 2004-2007 ...
    (microsoft.public.windowsmedia.player.web)
  • Question about function "settimeofday"
    ... Which standard does the function "settimeofday" belong to, ... use above function, and this header is not part of ISO C, but the XSI ... extension part of POSIX. ...
    (comp.lang.c)
  • Re: Panix, and newsreader choices?
    ... the symbol NBSP in ISO 8859-1. ... problem is happening because there's no header line giving the charset ... the charset to be ISO 8859-1 should make it work for you and any readers ... says that my character set is 7-bit ASCII? ...
    (rec.arts.sf.fandom)
  • Re: file date
    ... Internet Explorer 6 and Iceweasel (Firefox) 3.5.3, ... content header values are taken straight from RFC): ... HTTP requirements for the date/time stamp format apply only ... HTML-date which is what we are normalizing to: ...
    (comp.lang.javascript)

Loading