Apache Server configuration support - Apache 2 and charset

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2006 > Apache 2 and charset





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Apache 2 and charset
Andrea

2006-11-20, 7:33 am

I have a Server with Fedora core 5 and Apache 2.2.2. I have different site
with different text encoding (UTF-8, windows-1252 and other...): how can
configure apache for encoding all type of format?

Best regards

Andrea


shimmyshack

2006-11-20, 7:33 am

if you know in advance which files have which encoding you can use

AddDefaultCharset utf-8

which can modify the default for a particular vhost or set of files.
http://httpd.apache.org/docs/2.2/mo...ddefaultcharset


similarly
http://httpd.apache.org/docs/2.2/mo...html#addcharset

AddCharset UTF-8 .html .htm

or

<Files "particular_file.html">
AddCharset UTF-8 .html
</Files>

or FilesMatch to specify groups of files, or the Directory block for
directories.

see mod_negotiation / content negotiation.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com