flolcatrord
New Member
I have this function:\[code\]function validate($data) { $newData = http://stackoverflow.com/questions/11037929/str_replace(" ", " ", $newData); $newData = http://stackoverflow.com/questions/11037929/utf8_encode(htmlentities(strip_tags($data))); return $newData;}$rssfeed.='<description><![CDATA['.validate($news).']]></description>';\[/code\]MY MySQL table that it draws from uses utf8-general_ci encoding.However, my XML feed still has \[code\] \[/code\] in it. Any ideas why?