Re: [PHP] Problem when adding special characters to an XML file

2010-07-15 Thread te0t3l
Thanks for your offer Richard, but I solved the problem deleting the UTF-8 encoding label in the XML file like this: before: after:

Re: [PHP] Problem when adding special characters to an XML file

2010-07-15 Thread Richard Quadling
On 15 July 2010 12:01, te0t3l wrote: > Hi again, > > Now I download the editing XML file and open it in windows with notepad and > save with utf-8 encode, then upload the file again and can see the correct > characters, what's the problem? I'm specifying the correct encoding when > process the for

Re: [PHP] Problem when adding special characters to an XML file

2010-07-15 Thread te0t3l
Hi again, Now I download the editing XML file and open it in windows with notepad and save with utf-8 encode, then upload the file again and can see the correct characters, what's the problem? I'm specifying the correct encoding when process the form and editing the XML file: $XML = new DOMDocume

[PHP] Problem when adding special characters to an XML file

2010-07-14 Thread te0t3l
Hi, I'm editing an XML file through a form: $XML = new DOMDocument('1.0', 'UTF-8'); $XML->preserveWhiteSpace = false; $XML->load("../xml/exposiciones.xml"); $raiz = $XML->documentElement; $nodoContenedor = $XML->getElementsByTagName('texto'); foreach ($nodoContenedor as $NuevoNodo)