Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-15 Thread tedd
At 7:42 PM -0500 8/14/06, Richard Lynch wrote: What a mess MS makes of things! Except sales. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-14 Thread Richard Lynch
My current theory is that IE needs BOTH header() and META charset to agree before it will believe you. :-) On Sat, August 12, 2006 8:05 pm, Jonny Bergström wrote: It's me again. I might have solved it... in a way. Still quite puzzled about why IE don't give a dime about the meta encoding

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-14 Thread Richard Lynch
On Sun, August 13, 2006 1:43 pm, Rasmus Lerdorf wrote: tedd wrote: At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote: By the way, everyone should be setting a charset. If you don't set it, IE will look at the first 4k of the body of the page and take a wild guess. -Rasmus -Rasmus: Ok, but

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-13 Thread tedd
At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote: By the way, everyone should be setting a charset. If you don't set it, IE will look at the first 4k of the body of the page and take a wild guess. -Rasmus -Rasmus: Ok, but why doesn't w3c use it? http://validator.w3.org/ (check source)

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-13 Thread Rasmus Lerdorf
tedd wrote: At 6:48 PM -0700 8/12/06, Rasmus Lerdorf wrote: By the way, everyone should be setting a charset. If you don't set it, IE will look at the first 4k of the body of the page and take a wild guess. -Rasmus -Rasmus: Ok, but why doesn't w3c use it? http://validator.w3.org

[PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Jonny Bergström
...btw, I have been thinking, does IE only display UTF8 pages if the source file is saved using UTF8 *including* the BOM? I save all pages without the BOM because using BOM is impossible when you need to set cookies on client.

[PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Jonny Bergström
It's me again. I might have solved it... in a way. Still quite puzzled about why IE don't give a dime about the meta encoding line in the html head tag. Here's what I did. The aforementioned header file now adds a header() statement sending a content-type that also tells the charset, utf-8. :

Re: [PHP] Re: Internet Explorer doesn't display UTF-8 page using UTF-8 encoding

2006-08-12 Thread Rasmus Lerdorf
IE doesn't actually support XHTML, so if your primary target for something is IE, you really shouldn't be using XHTML. Even IE7 doesn't fully support it. Setting the charset in the response header like you did is the best approach. You can do it for all your pages in your php.ini file with: