You are here: Re: XML Filters for illegal characters « PHP « IT news, forums, messages
Re: XML Filters for illegal characters

Posted by Jason Barnett on 01/05/05 18:58

Douglas 1 Jones wrote:
> Hello,
>
> I'm wondering if anyone knows of a filter that can take data to be wrapped in XML tags and filter this data encoding any illegal XML characters or, if they cannot be encoded, remove them. The problem I have is a database that contains text that must be wrapped in XML. Some of this text has illegal characters in it (probably copied from MS Word). Some of the characters that keep popping up are not very frequently used, so I'm hoping whatever filters get suggested, they can simply strip out these characters if they cannot encode them.
>
> thanks for your help.
>
>

Perhaps I am misunderstanding your problem, so let me ask it another
way. Is the problem that you are getting characters entered into the
database that are encoded in one way (e.g. UTF-8) when you expected the
characters to be encoded in another way (e.g. ISO-8859-1)?


--
Teach a person to fish...

Ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html
PHP Manual: http://php.net/manual/
php-general archives: http://marc.theaimsgroup.com/?l=php-general&w=2

 

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

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