For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > August 2004 > Re: [PEAR] charset encoding XML_Tree output with iconv









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] charset encoding XML_Tree output with iconv
Christian Stocker

2004-08-04, 3:56 am

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=pea...37136532551&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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com