|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-19 23:09 UTC] jani@php.net
[2009-02-20 17:44 UTC] bbarnetm at yahoo dot com
[2009-02-27 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
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"