Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Thiago H. Pojda
On Tue, Jul 29, 2008 at 4:59 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > On Tue, Jul 29, 2008 at 3:52 PM, Thiago H. Pojda <[EMAIL PROTECTED]> > 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 bee

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Andrew Ballard
On Tue, Jul 29, 2008 at 3:52 PM, Thiago H. Pojda <[EMAIL PROTECTED]> 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

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Thiago H. Pojda
On Tue, Jul 29, 2008 at 4:20 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > On Tue, Jul 29, 2008 at 2:33 PM, Thiago H. Pojda <[EMAIL PROTECTED]> > wrote: > > > -- > > Thiago Henrique Pojda > > > > Are you sure the accented characters you are using are part of > ISO-8859-1 and not UTF-8? I don't

Re: [PHP] XML Encoding

2008-07-29 Thread mike
you should want it to be utf-8 anyway. On 7/29/08, Thiago H. Pojda <[EMAIL PROTECTED]> wrote: > Guys, > > I'm building a XML in a PHP Script. Everything works fine until I add > accented (ISO-8859-1) characters into it. > > As far as I can see, there's no way to change DOMDocument's encoding from

Re: [PHP] XML Encoding - with examples

2008-07-29 Thread Andrew Ballard
On Tue, Jul 29, 2008 at 2:33 PM, Thiago H. Pojda <[EMAIL PROTECTED]> wrote: > Okay, > > After much iconv, headers and "workarounds" I figured I can't use > DOMDocument for XMLs when under ISO-8859-1 encoding without messing accented > chars. > > The idea is simple: get a query result and turn into

[PHP] XML Encoding - with examples

2008-07-29 Thread Thiago H. Pojda
Okay, After much iconv, headers and "workarounds" I figured I can't use DOMDocument for XMLs when under ISO-8859-1 encoding without messing accented chars. The idea is simple: get a query result and turn into a XML. Using mysql_fetch_object is the best way for this task. If I just do nothing: ge

[PHP] XML Encoding

2008-07-29 Thread Thiago H. Pojda
Guys, I'm building a XML in a PHP Script. Everything works fine until I add accented (ISO-8859-1) characters into it. As far as I can see, there's no way to change DOMDocument's encoding from UTF-8, right? Thanks, -- Thiago Henrique Pojda

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Nathan Rixham
Larry Brown wrote: It is not that I want to generate the document in UTF-8. I just need to specify the correct encoding. My assumption that it was UTF-8 based on what my command line settings are is obviously incorrect. How can I tell what php is encoding in by default? Larry On Fri, 2008-02

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Larry Brown
It is not that I want to generate the document in UTF-8. I just need to specify the correct encoding. My assumption that it was UTF-8 based on what my command line settings are is obviously incorrect. How can I tell what php is encoding in by default? Larry On Fri, 2008-02-22 at 17:20 +0100, B

Re: [PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Bojan Tesanovic
encoding="UTF-8" doesn't guarantee that XML is encoded in UTF-8 its only purpose is to tell XML parser how to decode that XML document . it is responsibility of document creator to ensure that XML is proper UTF-8 document . on PHP side when creating XML there are number of functions to ensu

[PHP] XML encoding variable simpleXML on Linux

2008-02-22 Thread Larry Brown
I am using PHP on Linux to communicate with an XML peer. I pull and push documents from and to their server. On the console I use UTF-8 as far as I can tell. When I send these documents should my leading tag read: or is the encoding done by PHP and how do I know what it is encoded to? TIA L