ID:               47455
 Comment by:       bbarnetm at yahoo dot com
 Reported By:      bbarnett at gt dot co dot cr
 Status:           Feedback
 Bug Type:         SimpleXML related
 Operating System: Windows 2003 Server R2
 PHP Version:      5.2.9RC3
 New Comment:

My web service provider fix my problem.

Thank you


Previous Comments:
------------------------------------------------------------------------

[2009-02-19 23:09:37] [email protected]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.




------------------------------------------------------------------------

[2009-02-19 22:35:08] bbarnett at gt dot co dot cr

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 this bug report at http://bugs.php.net/?id=47455&edit=1

Reply via email to