note 14508 added to function.domxml-new-child.php

From: Date: Thu, 02 Aug 2001 10:16:06 +0000
Subject: note 14508 added to function.domxml-new-child.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16222@lists.php.net to get a copy of this message
A mistake I made when first trying to manipulate the DOM tree: the text content for a node should be in UTF-8 encoding, even if the imported tree uses another encoding. So, when using non-ASCII characters, first utf8_encode() the content, or libxml will die rather ungracefully. http://www.php.net/manual/en/function.domxml-new-child.php

« previous php.notes (#16222) next »