Re: XML, strings and foreign (swedish/danish) characters

From: Date: Wed, 03 Dec 2003 09:22:33 +0000
Subject: Re: XML, strings and foreign (swedish/danish) characters
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-171649@lists.php.net to get a copy of this message
2003-12-02 kl. 12.23 skrev Manuel Lemos:
You just need to use the proper input/output encodings.
Doesn't work at all… The code // Prepare the content of the xml-file to go to the xsl-parser $xml = str_replace("?", chr(63), $contents); $xml = str_replace("<empty/>", $kurt, $xml); $xml = trim($xml); $xml = utf8_encode($xml); echo $xml; makes the string "<?xml version="1.0" encoding="utf-8"?>" become "<?xml version="1.0" encoding="utf-8"?>" And the crap in fron of the string, which seems to come from nowhere, makes the parser complain about not well formed markup in the xml-source… Regards, Victor

« previous php.general (#171649) next »