Reply to Re: [PHP] domit and XML

Your name:

Reply:


Posted by Stephen Leaf on 10/21/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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация