|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Submitted: 2009-02-19 22:35 UTC Modified: 2009-02-27 01:00 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: bbarnett at gt dot co dot cr Assigned:
Status: No Feedback Package: SimpleXML related
PHP Version: 5.2.9RC3 OS: Windows 2003 Server R2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
23 - 14 = ?
Subscribe to this entry?

 [2009-02-19 22:35 UTC] bbarnett at gt dot co dot cr
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" 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-19 23:09 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

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-20 17:44 UTC] bbarnetm at yahoo dot com
My web service provider fix my problem.

Thank you
 [2009-02-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 24 07:01:35 2024 UTC