|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-26 23:01 UTC] jani@php.net
[2008-09-03 01:00 UTC] php-bugs at lists dot php dot net
[2009-01-08 16:53 UTC] quamis at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ Some special German (latin1) caracters could not be set correctly. The code produces different output between addCild and directly set of the value in an existing child. Reproduce code: --------------- // 1 $xml->obermenue[0]->addChild("titel","<![CDATA[Übertrumpfen]]>"); // 2 $xml->obermenue[0]->titel="<![CDATA[Übertrumpfen]]>"; Expected result: ---------------- 1: Output: <titel><![CDATA[Übertrumpfen]]></titel> 2: Output: <titel><![CDATA[Übertrumpfen]]></titel> Actual result: -------------- 1: Output: <titel><![CDATA[Übertrumpfen]]></titel> Please look at the "<" and "&" in the first Output. It changed to "<" and the "&" not change. 2: Output: <titel><![CDATA[&Uuml;bertrumpfen]]></titel> This one the "<" changed to "<" too but the "&" chnaged to "&"