|  | Posted by Stephen Leaf on 06/12/36 11:28 
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.
  Navigation: [Reply to this message] |