Re: [PHP] domit and XML
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 > > Erik, The easiest way to make sure that all characters are represented correctly is to specify the UTF-8 codepage on your HTML pages and making sure that you edit and save your XML documents with an editor that is capable of handling UTF-8, such as Windows Notepad (W2000 or later I think) or Editplus from editplus.com, or one of the major editors, such as Dreamweaver or Visual Studio or Zend Studio. This ought to fix most problems. Regards, Torgny -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] domit and XML
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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] domit and XML
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