Re: XML/HTML encoding?

From: Date: Fri, 09 Jan 2004 18:40:29 +0000
Subject: Re: XML/HTML encoding?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-174163@lists.php.net to get a copy of this message
Hello, On 01/09/2004 01:23 PM, Vincent Jansen wrote:
I'm doing some XML processing with PHP5 I'm using UTF-8 encoding When I look at my xml doc it looks something like <?xml version="1.0" ?> <doc> <text>dotted e (ë) works</text> </doc> (I hope you see a dotted e) After xslt I end up with a html document with a souce that looks something like <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <head> <title>dotted e (ë) works</title> </head> <body> Etc..... This is what I want But my browser displays "dotted e () works" Because I don't want yes or no: Please tell me what (maybe obvious thing) I'm doing wrong
To use it as you have you need to specify ISO-8859-1 as encoding in the XML input document. -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/

« previous php.general (#174163) next »