Delivered HTTP charset for static html files


I wanted to create some charset tests and write some short .html and .js files with certain charsets. I use Fiddler to view the HTTP requests/responses.

All .js files are delivered with "Content-Type: application/javascript" from my Apache 2.2.11. The .html files are delivered with "Content-Type: text/html; charset=utf-8" which causes the browser to ignore the included '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />' setting.

Where does the charset=utf-8 order come from?

The httpd.conf file doesn´t have a "AddDefaultCharset" setting. The result doesn´t change if I add this with a value of "AddDefaultCharset Off" or "AddDefaultCharset ISO-8859-1" in the last line (the httpd.conf file is the right one, other changes work).

Following modules are loaded (I think only mod_mime interests):
LoadModule alias_module modules/
LoadModule asis_module modules/
LoadModule auth_basic_module modules/
LoadModule authn_default_module modules/
LoadModule authn_file_module modules/
LoadModule authz_default_module modules/
LoadModule authz_groupfile_module modules/
LoadModule authz_host_module modules/
LoadModule authz_user_module modules/
LoadModule autoindex_module modules/
LoadModule dir_module modules/
LoadModule env_module modules/
LoadModule include_module modules/
LoadModule isapi_module modules/
LoadModule log_config_module modules/
LoadModule mime_module modules/
LoadModule negotiation_module modules/
LoadModule setenvif_module modules/
LoadModule ssl_module modules/
LoadModule status_module modules/

Thie mime.types file contains this line:
text/html                              html htm

Are there any other files/options which can cause the delivered charset? How can I remove it?

Kind regards
Who is Participating?
maxworxAuthor Commented:
No idea?
Need more infos? Should I upload all apache config files?
Do you have an AddCharset directive? Or AddType?

I think a good start is

maxworxAuthor Commented:
None of them are active:
- there are a httpd-languages.conf file with a line  "AddCharset UTF-8   .utf8" but these are not included
- there are a charset.conv file which I don´t know if it is loaded anywhere: "UTF-8       utf8        UTF-8"
- There are only a few special AddTypes in the .conf files most are loaded with the mime_module "TypesConfig conf/mime.types" which includes the above line "text/html                              html htm"

A few years ago I used Apache 2.0.X with "AddDefaultCharset utf-8". At that time this line changed the behavior in the way it seems to be the default now. But this behavior I don´t want any more, the HTTP header should only be "Content-Type: text/html"
maxworxAuthor Commented:
No helpfull comments here. Question doesn´t interest any more.
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.

All Courses

From novice to tech pro — start learning today.