You are here: "Special Character" Problem with DOM « PHP Programming Language « IT news, forums, messages
"Special Character" Problem with DOM

Posted by Diilb on 01/30/07 00:15

I am using DOM to create an rss feed. The problem I am running into
is "special characters" such as é è ç. If I try adding them to the
XML as character data (CData), DOM chokes and throws out errors. If I
do a search and replace on the characters changing them to HTML
entities instead of using CDATA, DOM chokes up again. If I do a
combination of both (search and replace then add as Character Data) it
does not choke, but the RSS readers don't render the html entities
because they are defined as CDATA.

Any thoughts. I could write my own writer, but I would rather use
DOM.

Suggestions would be appreciated.

Thanks.

Diilbert

 

Navigation:

[Reply to this 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

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