Re: charset encoding XML_Tree output with iconv
| From: | Christian Stocker | Date: | Wed, 04 Aug 2004 06:48:54 +0000 |
| Subject: | Re: charset encoding XML_Tree output with iconv | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13956@lists.php.net to get a copy of this message | ||
On Tue, 03 Aug 2004 18:31:23 +0100, Demian Turner <demian@phpkitchen.com> wrote:
> 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
Should theoretically do it. As long as the <?xml ?> header encoding is
also correctly set.
chregu
>
> tia
>
> Demian
>
> [1]
> http://marc.theaimsgroup.com/?l=pear-dev&m=106837136532551&w=2
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | chregu@bitflux.ch | gnupg-keyid
0x5CE1DECB