Setting a default charcode for an Apache2 webserver

If you have problems in your Apache (or Apache2) server not showing ISO characters in your webpages, even if the charset is set in the pages, it’s probably a missing line in your httpd.conf file.

In Apache2 servers, the file is at /etc/apache2/apache2.conf

Open it and look for

#AddDefaultCharset ISO-8859-1"

and remove the # character. (this means uncommenting the line, for the newbies 🙂

Restart the server by typing:

sudo /etc/init.d/apache2 restart

And your webpages shoud now look good.

Leave a Reply

You must be logged in to post a comment.