|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-05 05:18 UTC] cem@php.net
[2005-09-05 07:17 UTC] cem@php.net
[2005-09-05 07:18 UTC] cem@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 04:00:01 2025 UTC |
Description: ------------ SDO_DAS_XML always uses encoding UTF-8 even when the initial sources have different encoding. Using setEncode() does not work either. Reproduce code: --------------- try { $xmldas = SDO_DAS_XML::create("letter.xsd"); $xdoc = $xmldas->loadFromFile("letter.xml"); print("Encoding is set to: ".$xdoc->getEncoding()."\n"); $xdoc->setEncoding("ISO-8859-1"); print("Encoding is set to: ".$xdoc->getEncoding()."\n"); } catch (SDO_TypeNotFoundException $e) { print ("Type is not defined in the xsd file"); } catch (SDO_DAS_XML_ParserException $e) { print ("Problem while parsing"); } Expected result: ---------------- Encoding is set to: UTF-8 Encoding is set to: ISO-8859-1 Actual result: -------------- Encoding is set to: UTF-8 Encoding is set to: UTF-8