Re: Dealing with XML charsets

From: Date: Tue, 02 Jul 2002 21:33:35 +0000
Subject: Re: Dealing with XML charsets
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-105046@lists.php.net to get a copy of this message
I haven't tried this myself yet, but will soon be facing a similar need. http://www.php.net/iconv That's probably the way I'll start off on tackling this problem ... Grab your XML document, check to see if it's in windows-1252, and if it is, run it through the iconv functions, then parse the XML data. -Clay > From: Peter <peter@mapledesign.co.uk> > Date: Tue, 02 Jul 2002 21:05:28 GMT > To: php-general@lists.php.net > Subject: [PHP] Dealing with XML charsets > > Hi, > > Has anyone any advice as to how to deal with XML documents encoded in > windows-1252: a character set that PHP's XML extension won't process? I've > got a large number of such documents, and using xml_parse_into_struct() would > be the easiest way to handle them - but because of the encoding > problem I keep on ending up with ? instead of characters in the document in > certain places. Is there any way I could convert the charset? > > Thanks > Peter > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#105046) next »