Hi,
i have a strange problem and don't know where to look for the bug. Ok, i
have an html form witha text area.
Very roughly i make something like this (PHP 4.2.3, i can't update the
version):
------
$DomDocument = xmldoc('<'.'?xml version=\'1.0\'
encoding=\'ISO-8859-1\'?'.'><pages/>');
$root = $DomDocument->root();
$element = $DomDocument->create_text_node(utf8_encode($content));
//$content ist die Textarea
$root->add_child($element);
$handle1, $DomDocument->dumpmem("file.xml");
------
This works in every case. Especially the conversion of utf8 Strings and then
having a good ISO... file after the dump works in every case, until now with
my text area:
The file contains a lot of entities. The returns are displayed as
etc.
But if i write $content into a file, everything is fine.
In the html form the character set is also set to iso-8859-1.
Where do the entities come from and how can i avoid them?
Regards,
Frank