| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-04-26 22:05 UTC] helly@php.net
  [2004-06-03 19:41 UTC] jerome dot wagner at oreka dot com
  [2004-06-07 09:42 UTC] chregu@php.net
  [2004-09-11 19:07 UTC] bob dot siefkes at nec-computers dot com
  [2004-09-13 08:12 UTC] derick@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 08:00:01 2025 UTC | 
Description: ------------ Simple Xml seems to output only utf-8. No matter how specified in encoding='iso-8859-1' and not simple function to change encodage. Reproduce code: --------------- $xmlstr = <<<XML <?xml version='1.0' encoding='iso-8859-1'?> <root> <section> <title>Gestion des Objets</title> <title>Gestion des G?olocalisation</title> <title>Autres questions...</title> </section> </root> XML; $xml = simplexml_load_string($xmlstr); foreach ($xml->section->title as $title) { echo $title, '<br />'; } ?> Expected result: ---------------- Gestion des Objets Gestion des G?olocalisation Autres questions... Actual result: -------------- Gestion des Objets Gestion des Géolocalisation Autres questions...