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 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. :
>
> ---snip---
> <?php
> header('Content-Type: text/html; charset=utf-8');
> echo '<?xml version="1.0" encoding="UTF-8"?>';?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html>
>     <head>
>         <meta name="Content-type" content="text/html; charset=UTF-8"
> />
>
> ---snip---
>
>
> I don't know if it's the best way to solve it but IE seems happy with
> it,
> and I haven't seen any sideeffects in FF so far.
>


-- 
Like Music?
http://l-i-e.com/artists.htm

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

Reply via email to