[PHP] Re: XML/HTML encoding?

2004-01-09 Thread Manuel Lemos
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
textdotted 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
titledotted 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/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: XML/HTML encoding?

2004-01-09 Thread memoimyself
Hello Vincent,

On 9 Jan 2004 at 16:23, Vincent Jansen wrote:

 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
   titledotted 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

I don't think you're doing anything wrong, except perhaps for using an outdated 
browser. 
The ë (e-umlaut, which you called a dotted e) displays just fine in both IE 6 and 
Netscape 7.1 on my computer.

Make sure your browser is configured to use Western European (ISO-8859-1) encoding, 
because even latest-generation browsers have poor support for UTF-8. To change your 
browser's encoding settings, do:

In IE 6: View  Encoding

In Netscape: View  Character Coding

Any other browser: figure it out yourself ;-)

Take care,

Erik

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php