The precedence rule that browsers are supposed to follow is that if the
server sets the charset in the http (transmission) protocol, then that
should be used.
If http is not set, then the meta html statement is followed.
So if after changing the meta statement the browser still insists on
defaulting to 8859-1,
Then probably your server is sending the page with http declaring ISO
8859-1.

Depending on your apache version, there was a bug in apache a short while
back, where it set the http charset to iso 8859-1, when it shouldn't set any
charset.

You might try saving the page locally and then opening it with a browser.
Opening it as a local file will eliminate http as a variable.

hth

Tex Texin
Internationalization Architect,   Yahoo! Inc.
 


-----Original Message-----
From: steve [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 18, 2004 3:15 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-I18N] Accented characters


Tex Texin wrote:

> So Steve, I agree with Christophe's diagnosis, and would suggest that 
> probably you are seeing multiple jumbled chars, because the page 
> contains utf-8 and is being decoded as iso 8859-1. Tell your browser 
> to use utf-8. If that fixes the display, then tell your server the 
> page is utf-8 and/or set the meta http-equiv statement in the <head> 
> section of the html that the charset is utf-8, instead of iso8859-1.

I think this might be it. Why these chars are utf-8 is beyond me (hell, I'm
no programmer - I make my living writing & shooting pictures). Why these
pages appear correct when delivered by my shared hosting (these pages are
iso-8859-1) but not when served by my local system is baffling to me. Is
this to do with Apache settings?

I've now changed a page to UTF-8, as in:

<meta http-equiv="content-type" content="text/html;charset=UTF-8">

But my browsers are insisting on viewing as iso-8859-1 unless I manually
select utf-8. I have Firefox set to auto-detect->universal and have even set
the default to UTF-8 under preferences. I tried with IE from my Windows box
- same deal. Uh ... time for bed.

-- 
@+
Steve

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

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

Reply via email to