default page encoding

Hi,

This might not be an Apache question but I think it is so bear with me...thanks....

I have some web pages that are encoded with UTF-8.  I have set <meta http-equiv="Content-Type" content="text/html; charset=utf-8" > on the pages, but still the default encoding by the browser is ISO-8859-1, which causes some of the characters to display wrong.  if you manually change the encoding in Firefox or IE to UTF-8 the page reloads and we're all very happy, the characters all display right, etc.  

So how do I get this encoding to default for every browser?!  I'm assuming since I've set the meta tag in the HTML and it's still not working it's an Apache thing.  

Thanks!
 
bakumAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

periwinkleCommented:
It may *be* an Apache thing.  See:

http://www.w3.org/International/O-HTTP-charset

which states:

For Apache, this can be done via the AddCharset (Apache 1.3.10 and later) or AddType directives, for directories or individual resources (files). With AddDefaultCharset (Apache 1.3.12 and later), it is possible to set the default 'charset' for a whole server.

Unfortunately, it also says:

In theory, any character encoding that has been registered with IANA can be used, but there is no browser that understands all of them. The more widely a character encoding is used, the better the chance that a browser will understand it.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bakumAuthor Commented:
That was it.  I set up an .htaccess file where those utf-8 files are and set

AddDefaultCharset Off

did the trick.  Turns out that in most circumstances there should be no default charset set for Apache.  That this should be left to the HTML, generally.
0
periwinkleCommented:
Glad to have assisted!  Good luck with your site!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.