not sure what this wc3 error means.

I get this error when I check client's site (http://patheonconsulting.com/)  at w3c. (http://validator.w3.org/).  I am not sure what it means since I cannot find any referencd to iso-8859-1 in html.

The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.
nsitedesignsAsked:
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.

Dave BaldwinFixer of ProblemsCommented:
In the HTTP response header, your web server is returning...
Content-Type: text/html; charset=ISO-8859-1

Open in new window

This is specified in the Apache set up.  You should contact your web hosting company and point out that it is interfering with your web pages.
0
nsitedesignsAuthor Commented:
but  the weird thing is that the site runs fine.  what is the interferece?
0
nsitedesignsAuthor Commented:
The host will need hand-holding to fix this.  What do I tell them to change the server to?  Is it a setting in Apache?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

nsitedesignsAuthor Commented:
could I change the value in the html doc to match what apache server is saying?
0
Dave BaldwinFixer of ProblemsCommented:
You could change the HTML (on all pages) to match what the server is sending out.  However, the server simply shouldn't be doing that.  I've seen it before and it typically causes those ? in a black diamond characters when there is a character code mismatch.

The host should find the line where it says "Content-Type: text/html; charset=ISO-8859-1" and delete it.  Let the pages set their own character sets.  It may be in the main apache2.conf or it may be in the 'virtual' 'conf' file for that site.

http://httpd.apache.org/docs/2.2/mod/mod_mime.html

This is the host:

Excel.Net, Inc.
OrgId:          EXCL
Address:        2103 Indiana Avenue
City:           Sheboygan
StateProv:      WI
PostalCode:     53081
Country:        US
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
GaryCommented:
They are on Apache so you should be able to change it in the htaccess (I'm not 100% sure on this or the host may not allow it) so just add to the htaccess

AddCharset UTF-8

ISO-8859-1 is the default that Apache uses (weird)
If the above doesn't work then they will need access to the httpd.conf file
0
nsitedesignsAuthor Commented:
Thanks fellas!
0
nsitedesignsAuthor Commented:
This is what host said when asked to delete "Content-Type: text/html; charset=ISO-8859-1"

This is not something we are willing to change on a global basis as that is how our encoding has been specified for many years.  I do recognize UTF-8 is now considered the new "default" for HTML 5 moving forward and if that is how you have coded your site you can easily make the changes to support this.  On a site level you can create a .htaccess file and specify directives like this to override the server based defaults for your domains.  This is how you should handle the requested change, so that only their site is affected by the change.  This is pretty standard Apache functionality and you should be able to use this on other sites hosted on servers using that software as well.

So now my questions is, how do I create a .htaccess file? And what should go on that file?
0
GaryCommented:
I already told you above
An .htaccess file is just a text file that has no name just the extension .htaccess and you put it in the root folder
0
nsitedesignsAuthor Commented:
I didn't know it was just a text file.  I will try this.
0
nsitedesignsAuthor Commented:
I created fix.htaccess file and put AddCharset UTF-8 as the only text on the file and I uploaded it.  Still get the same warning.  Actually, here are all the warnings I get:

 Character Encoding mismatch!

The character encoding specified in the HTTP header (iso-8859-1) is different from the value in the <meta> element (utf-8). I will use the value from the HTTP header (iso-8859-1) for this validation.

Validation Output: 1 Error

 Using windows-1252 instead of the declared encoding iso-8859-1. ✉
 Legacy encoding windows-1252 used. Documents should use UTF-8. ✉
 Line 4, Column 22: Internal encoding declaration utf-8 disagrees with the actual encoding of the document (windows-1252).
<meta charset="UTF-8">
0
Dave BaldwinFixer of ProblemsCommented:
'fix.htaccess' must be named simply '.htaccess'.
0
nsitedesignsAuthor Commented:
When I rename file to .htaccess the site goes down.  I get this error:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@patheonconsulting.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2.2.9 (Fedora) Server at patheonconsulting.com Port 80
0
GaryCommented:
Are you sure there is nothing else in the file?
Try it with

AddDefaultCharset UTF-8
0
Dave BaldwinFixer of ProblemsCommented:
Was there another '.htaccess' file there before you changed the name?  On Linux, that would cause the 'new' file to overwrite the old one.
0
nsitedesignsAuthor Commented:
I used "AddDefaultCharset UTF-8" and that worked!

p.s. There was no other .htaccess file on server beforehand.
0
Dave BaldwinFixer of ProblemsCommented:
Good, I'll make a note.  And the web hosts are still punks.  With all of the available characters sets out there, they should never have set up the server that way.
0
nsitedesignsAuthor Commented:
I didn't care for his response when he indicated that this was the way they have always done it and that they weren't going to change for me.  The change doesn't benefit "me" it is for their clients!  All things change in time.  They should be more flexible.
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
CSS

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.