I'm consuming a xml (i get it by a rest service). At one point i decode a CDATA field as:
$version_doc = $this->getSimpleXml($uri);
if($version_doc != false){
$equipment = utf8_decode((string)$version_doc->equipment);
}
This is an example of the xml field "equipment":
![CDATA[ABARTH: ABS, llantas de aleación de 16'', eléctrico,llantas de aleación de 17" color antracita.]]
After i have seted the $equipment variable, if i save it in mysql (a latin1_spanish_ci collate, latin1 charset table and with Doctrine 1.2) the result in the mysql col for the row is:
ABS, llantas de aleación de 16'', eléctrico,llantas de aleación de 17?? color antracita.
Why i'm getting all the time the ?? symbol?
I'm in PHP5.3 , MySql 5 and running the server in a MAMP environment (MAC)