We help IT Professionals succeed at work.

not sure what this wc3 error means.

nsitedesigns
nsitedesigns asked
on
905 Views
Last Modified: 2014-08-06
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.
Comment
Watch Question

Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014

Commented:
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.

Author

Commented:
but  the weird thing is that the site runs fine.  what is the interferece?

Author

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?

Author

Commented:
could I change the value in the html doc to match what apache server is saying?
Fixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks fellas!

Author

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?
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014

Commented:
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

Author

Commented:
I didn't know it was just a text file.  I will try this.

Author

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">
Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014

Commented:
'fix.htaccess' must be named simply '.htaccess'.

Author

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
CERTIFIED EXPERT
Expert of the Year 2014
Top Expert 2014

Commented:
Are you sure there is nothing else in the file?
Try it with

AddDefaultCharset UTF-8
Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014

Commented:
Was there another '.htaccess' file there before you changed the name?  On Linux, that would cause the 'new' file to overwrite the old one.

Author

Commented:
I used "AddDefaultCharset UTF-8" and that worked!

p.s. There was no other .htaccess file on server beforehand.
Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014

Commented:
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.

Author

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.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.