Volitics wrote:
My question is: If I leave the server setting at the UTF-8 setting and change all of the meta tags in the headers to UTF-8 so it will validate with the w3 validator are there any potential problems that I might encounter with my coding?
Thanks.
If the server settings are set to UTF-8 it doesnt matter what you set the meta tags to, they get ignored.
From apaches httpd.conf
# Specify a default charset for all content served; this enables
interpretation of all content as UTF-8 by default. To use the
default browser choice (ISO-8859-1), or to allow the META tags
in HTML content to override this choice, comment out this
directive:
#
#AddDefaultCharset UTF-8
So comment out AddDefaultCharset UTF-8 like ive done above and restart the service/server, then you can set any charset you like with the meta tags, and the validator will use that.
After i had to reinstall my LAMP server, i forgot to comment out "AddDefaultCharset UTF-8". The web pages i was currently working on was coded in ISO-8859-1, and the only problem i saw was that the norwegain special chars (æøΓ₯) didnt display correctly, just got a ? symbol in their place.
Edit: Dont know much about the pro's and con's of the different charsets, but i found this message on the php.net site when checking out the mail() function (http://no.php.net/manual/en/ref.mail.php)
i strongly feel that internet site developers should exclusively use UTF-8 text encoding / character setting over ISO-8859-1... UTF-8 is universal and will display all characters as they were meant to be displayed, whereas ISO-8859-1 is prone to garbled text.