|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29987 Errors with encoding
Submitted: 2004-09-05 17:17 UTC Modified: 2004-09-05 17:25 UTC
From: lehphyro at yahoo dot com dot br Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.0.1 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: lehphyro at yahoo dot com dot br
New email:
PHP Version: OS:


 [2004-09-05 17:17 UTC] lehphyro at yahoo dot com dot br
I tried to load a xml file with ISO-8859-1 encoding.

I have tried several ways for loading, but I had no success because simplexml returns the loaded string with errors.

I have tried iconv functions too.

Reproduce code:
file test.php:
include ("example.php");

$xml = simplexml_load_string($xmlstr);

echo $xml->movie[0]->plot;

file example.php:
$xmlstr = <<<XML
<?xml version='1.0' encoding="ISO-8859-1"?>

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-05 17:25 UTC]
Duplicate of #29988.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Sep 25 18:01:25 2023 UTC