From: Ken Coar Date: Thu, 9 Dec 1999 18:10:39 +0000 (+0000) Subject: Add the AddCharset functionality to mod_mime. X-Git-Tag: 1.3.10~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a97b2e3dd057aaa416ee51fd502003a680b9045;p=apache Add the AddCharset functionality to mod_mime. Submitted by: Youichirou Koga Reviewed by: Ken Coar, Martin Kraemer git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84265 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_mime.html b/docs/manual/mod/mod_mime.html index c222cab89b..9bb283cd23 100644 --- a/docs/manual/mod/mod_mime.html +++ b/docs/manual/mod/mod_mime.html @@ -29,12 +29,12 @@ which determines how the document will be processed within the server.

-The directives AddEncoding, AddHandler, AddLanguage and AddType +The directives AddCharset, +AddEncoding, AddHandler, +AddLanguage and AddType are all used to map file extensions onto the meta-information for that -file. Respectively they set the content-encoding, handler, -content-language and MIME-type (content-type) of documents. The +file. Respectively they set the character set, content-encoding, handler, +content-language, and MIME-type (content-type) of documents. The directive TypesConfig is used to specify a file which also maps extensions onto MIME types. The directives ForceType and Directives


+

AddCharset

+Syntax: AddCharset charset extension + [extension...]
+Context: server config, virtual host, directory, .htaccess
+Override: FileInfo
+Status: Base
+Module: mod_mime +
+Compatibility: AddCharset is only available in Apache +1.3.10 and later + +

+The AddCharset directive maps the given filename extensions to the +specified content charset. charset is the MIME charset +parameter of filenames containing extension. This mapping is +added to any already in force, overriding any mappings that already +exist for the same extension. +

+

+Example: +

+    AddLanguage ja .ja
+    AddCharset EUC-JP .euc
+    AddCharset ISO-2022-JP .jis
+    AddCharset SHIFT_JIS .sjis
+
+ +

+Then the document xxxx.ja.jis will be treated as being a +Japanese document whose charset is ISO-2022-JP (as will the document +xxxx.jis.ja). Although the content charset is reported to +the client, the browser is unlikely to use this information. The +AddCharset directive is more useful for +content negotiation, where +the server returns one from several documents based on the client's +charset preference. +

+

+See also: mod_negotiation +

+ +

AddEncoding