2003-12-03 kl. 11.18 skrev Victor Spng Arthursson:
Temporarely solved the problem using substring to trim the crap-chars
away, but I'ld prefer to solve it in a more beautiful way, but perhaps
this behaviour is a bug and therefore not possible to solve in any
other way
But do we think it works
Here is the error message, that the code produces:
http://tosti.dk/xml/error.php
And here is a copy of the code:
http://tosti.dk/xml/error.txt
I really cant figure what is wrong, especially not since it works on
the dev-server and the outputted xml is valid, at least as far as IE
concerns
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);
2003-12-02 kl. 22.08 skrev Manuel Lemos:
The code
// Prepare the content of the xml-file to go to the xsl-parser
$xml = str_replace(empty/, $tempxml, $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
2003-12-03 kl. 10.22 skrev Victor Spng Arthursson:
makes the string
?xml version=1.0 encoding=utf-8?
become
?xml version=1.0 encoding=utf-8?
Temporarely solved the problem using substring to trim the crap-chars
away, but I'ld prefer to solve it in a more beautiful way, but perhaps
this
Hello,
On 12/02/2003 09:05 AM, Victor spng arthursson wrote:
I'm on the point of almost giving up trying to get XML and PHP to sing
along, but I'll throw out a question here first.
I'm having severe problems getting PHP and XML to work with XML-files
that contains foreign characters. Doesnt
6 matches
Mail list logo