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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

