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 <[EMAIL PROTECTED]> > Date: Tue, 02 Jul 2002 21:05:28 GMT > To: [EMAIL PROTECTED] > 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php