Strip illegal characters RSS Feed

I’ve generated an RSS Feed using PHP, but I need to strip all illegal characters.

The strings will be in French, so minimum there are the accents. I could get rid of them by replacing the accented characters by non-accepted characters, but there may be others characters that I won’t be testing for.

TIA
Patricia

One thing you could try is eoncoding your characters.

http://php.net/manual/en/function.htmlentities.php

Thanks, I’ll try that