php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47455 DON'T READ XML WITH SPANISH CHARACTERS
Submitted: 2009-02-19 22:35 UTC Modified: 2009-02-27 01:00 UTC
Votes:1
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
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-02-19 22:35 UTC] 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" 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-02-19 23:09 UTC] jani@php.net
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-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-2019 The PHP Group
All rights reserved.
Last updated: Sat Oct 19 18:01:27 2019 UTC