charset encoding XML_Tree output with iconv
| From: | Demian Turner | Date: | Tue, 03 Aug 2004 17:31:23 +0000 |
| Subject: | charset encoding XML_Tree output with iconv | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-13948@lists.php.net to get a copy of this message | ||
Hi all
Pardon the beginner question, but given this thread [1] and the apparent inability of XML_Tree to output non iso-8859-1 encoded output, can I run my output xml string through iconv and get an acceptable format that will validate? ie,
$xml = iconv('ISO-8859-1', 'UTF-8', $tree->get());
// write to file
tia
Demian
[1] http://marc.theaimsgroup.com/?l=pear-dev&m=106837136532551&w=2