Re: domit and XML

From: Date: Tue, 04 Oct 2005 14:15:36 +0000
Subject: Re: domit and XML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-223601@lists.php.net to get a copy of this message
On Tuesday 04 October 2005 12:42 am, Erik Barba wrote: > hi im new in the list i dont know where to write the email so i did it > here, i am having a problem > I have a xml file and im parsing with domit 1.0 but im from mexico, and we > use " é í ó ú á ñ " > the xml acept it but when the php show the code in html, i cant see the > letters Some characters are encoded. I've never used domit but I have used php5's DOM. http://us2.php.net/manual/en/ref.dom.php To get them back to the characters simple run it through htmlspecialchars_decode http://us2.php.net/manual/en/function.htmlspecialchars-decode.php If your still using PHP4 use this instead. function htmlspecialchars_decode_PHP4($uSTR) { return strtr($uSTR, array_flip(get_html_translation_table(HTML_ENTITIES, ENT_QUOTES))); } I've not personally tested it but it's found on that page.

« previous php.general (#223601) next »