From: bbarnett at gt dot co dot cr
Operating system: Windows 2003 Server R2
PHP version: 5.2.9RC3
PHP Bug Type: SimpleXML related
Bug description: DON'T READ XML WITH SPANISH CHARACTERS
Description:
------------
I'm try to read XML response from a Web Service where one of it's tag have
SPANISH characters and the function that I'm using give me a fatal error
Reproduce code:
---------------
$xml=new
SimpleXMLElement(utf8_decode($l_stResult['ServicioRecibosCobroResult']));
Expected result:
----------------
Something like THIS
object(SimpleXMLElement)#12 (2) { ["Encabezado"]=>
object(SimpleXMLElement)#8 (6) { ["Resultado"]=> string(4) "0000"
["Mensaje"]=> string(15) "DATOS CORRECTOS" ["Servicio"]=> string(7)
"3260304" ["CantidadRecibos"]=> string(4) "0001" ["Identificacion"]=>
string(14) "00000000000000" ["Cliente"]=> string(25) "ELIZABETH VALLEJOS
CERDAS" } ["Recibos"]=> object(SimpleXMLElement)#14 (1) { ["Recibo"]=>
object(SimpleXMLElement)#16 (5) { ["NIR"]=> string(18) "032603040121022008"
["Monto"]=> string(6) "333000" ["Moneda"]=> string(3) "CRC" ["Fact"]=>
string(8) "21022008" ["Venc"]=> string(8) "06032008" } } }
Actual result:
--------------
string(436) "0000DATOS CORRECTOS5272627000127010288042303ANG¿LICA SUAREZ
VALLEJOS052726270108022008712400CRC0802200822022008"
--
Edit bug report at http://bugs.php.net/?id=47455&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=47455&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=47455&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=47455&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=47455&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=47455&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=47455&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=47455&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=47455&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=47455&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=47455&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=47455&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=47455&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=47455&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=47455&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47455&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=47455&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=47455&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=47455&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=47455&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=47455&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=47455&r=mysqlcfg