#?SuikaWiki/0.9 [[#comment]] * 仕様書から **RFC 1945 (HTTP/1.0) D.2.2; RFC 2068・2616 (HTTP/1.1) 14.2 Accept-Charset > The Accept-Charset request-header field can be used to indicate [DEL[[INS[{1945}]] a list of preferred character sets other than the default US-ASCII and ISO-8859-1]] [INS[[INS[{2068,2616}]] what character sets are acceptable for the response]]. This field allows clients capable of understanding more comprehensive or special-purpose character sets to signal that capability to a server which is capable of representing documents in those character sets. [DEL[[INS[[INS[{2068}]] The ISO-8859-1 character set can be assumed to be acceptable to all user agents.]]]] [CODE(HTTP)[Accept-Charset]] 要求頭欄は、 応答にどの文字集合が受入れ可能であるかを示すのに使うことが出来ます。 この欄によって、より包括的な、 あるいは特殊目的の文字集合を理解する能力があるクライアントが、 その能力をそれらの文字集合で文書を表現する能力があるサーバーに通知することができます。 [DEL[[CODE(charset)[[[ISO-8859-1]]]] 文字集合は全ての利用者エージェントに受入れ可能であると仮定できます。]] [INS[ > - [DEL[[INS[{2068}]] [CODE(ABNF)[[DFN[Accept-Charset]] = "Accept-Charset" ":" 1#( charset [ ";" "q" "=" qvalue ] )]]]] - [INS[[INS[{2616}]] [CODE(ABNF)[[DFN[Accept-Charset]] = "Accept-Charset" ":" 1#( ( charset | "*" )[ ";" "q" "=" qvalue ] )]]]] >Character set values are described in section 3.4. Each charset [DEL[[INS[{2068}]] may]] [INS[[INS[{2616}]] MAY]] be given an associated quality value which represents the user's preference for that charset. The default value is q=1. An example is 文字集合値は 3.4 節で説明しています。各 charset は、その charset についての利用者の優先度を表す、関連付けられた品質値を与えても'''構いません'''。 既定値は [CODE(HTTP)[q=1]] です。例: - Accept-Charset: iso-8859-5, unicode-1-1;q=0.8 [INS[ >[INS[{2616}]] The special value "*", if present in the Accept-Charset field, matches every character set (including ISO-8859-1) which is not mentioned elsewhere in the Accept-Charset field. If no "*" is present in an Accept-Charset field, then all character sets not explicitly mentioned get a quality value of 0, except for ISO-8859-1, which gets a quality value of 1 if not explicitly mentioned. 特殊な値 [CODE(HTTP)[*]] が [CODE(HTTP)[Accept-Charset]] 欄に出現した場合、 [CODE(HTTP)[Accept-Charset]] 欄で他に触れられていない各文字集合 ([CODE(charset)[ISO-8859-1]] を含む。) に一致します。 [CODE(HTTP)[*]] が [CODE(HTTP)[Accept-Charset]] 欄中に出現しない場合は、陽に触れられていないすべての文字集合が品質値 [CODE(HTTP)[0]] を得ます。但し [CODE(charset)[ISO-8859-1]] は、陽に示されていない限り品質値 [CODE(HTTP)[1]] を得ます。 ]INS] > If no Accept-Charset header is present, the default is that any character set is acceptable. If an Accept-Charset header is present, and if the server cannot send a response which is acceptable according to the Accept-Charset header, then the server SHOULD send an error response with the 406 (not acceptable) status code, though the sending of an unacceptable response is also allowed. [CODE(HTTP)[Accept-Charset]] 頭が示されている場合、 既定値は全ての文字集合が受入れ可能、です。 [CODE(HTTP)[Accept-Charset]] 頭が示されている場合、 そしてサーバーが [CODE(HTTP)[Accept-Charset]] 頭に従って受入れ可能な応答を送ることが出来ない場合は、 サーバーは [CODE(HTTP)[[[406]]]] (受入れ不能) 状態符号の誤り応答を送る'''べきです'''。 但し受入れ不能な応答を送ることも認められています。 ]INS] ** RFC の部分の License [[RFCのライセンス]] *メモ