/
882.txt
67 lines (47 loc) · 3.19 KB
/
882.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[8] [DFN[x-user-defined]] は、[[文字符号化]]の1つです。
* 特殊性
[9] 他の[[文字符号化]]とは異なる特別な扱いがあります。[[文字符号化]]参照。
* 歴史
[1] [CITE@en[Using XMLHttpRequest - MDN]]
( ([TIME[2011-09-17 00:18:50 +09:00]] 版))
<https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest#Receiving_binary_data_in_older_browsers>
[2] [CITE[IRC logs: freenode / #whatwg / 20131129]]
( ([TIME[2013-12-01 11:05:17 +09:00]] 版))
<http://krijnhoetmer.nl/irc-logs/whatwg/20131129>
[3] [CITE@en[6588 – implement "User-Defined" charset]]
( ([TIME[2014-05-13 01:32:59 +09:00]] 版))
<https://bugzilla.mozilla.org/show_bug.cgi?id=6588>
[4] [CITE[Unicode Mail List Archive: Re: Unicode Devanagari Font in Mozil]]
( ([[James Kass (jameskass@worldnet.att.net)]] 著, [TIME[2002-07-18 14:42:09 +09:00]] 版))
<http://www.unicode.org/mail-arch/unicode-ml/y2002-m07/0411.html>
[5] [[電子メール]]での利用例もあるようですが、いつから誰が使っているのかははっきりしません。
2000年代以後のもので、 >>3 より後です。
[6] [CITE@en-US[Encoding Standard]]
( ([TIME[2014-05-12 14:33:32 +09:00]] 版))
<http://encoding.spec.whatwg.org/#x-user-defined>
[7] [CITE@en[Web Applications 1.0 r8618 Make <meta charset=x-user-defined> turn into windows-1252 for legacy reasons]]
( ([TIME[2014-05-08 08:32:00 +09:00]] 版))
<http://html5.org/tools/web-apps-tracker?from=8617&to=8618>
[10] [[Chrome]] は [CODE(HTMLe)@en[meta]] で指定された時、 [[Windows-1252]]
に読み替えます (仕様通りの動作)。
[[HTTPヘッダー]]や [[HTML文書]]中の [[XML宣言]]での指定、
[[CSS]] の [CODE[@charset]] の指定では、そのまま [[x-user-defined]]
として扱います。 [TIME[2017-05-06T14:19:06.300Z]]
[11] [[Chrome]] は [[XML宣言]]に
[CODE[x-user-defined]] が指定されている時、未知の[[文字符号化]]だとして[[整形式]]性エラーを表示します。
[[HTTPヘッダー]]で [CODE[x-user-defined]] が指定されていれば、それを尊重しますが、
[[XML宣言]]があればエラーになります (なければエラー無く取り扱えます)。
[TIME[2017-05-06T14:20:54.600Z]]
[12] [CITE@en[chardetng: A More Compact Character Encoding Detector for the Legacy Web]]
([[Henri Sivonen]], [TIME[2020-06-08T16:23:51.000Z]], [TIME[2021-10-15T03:19:42.333Z]])
<https://hsivonen.fi/chardetng/#fonts>
[13] [CITE[Armenian NLS - Internet]], [TIME[2022-05-14T03:50:19.000Z]], [TIME[2002-12-11T00:51:55.712Z]] <http://web.archive.org/web/20021210124951/http://www-us.webmasters.am/armnls/inet.htm>
>
It is recommended to define the character set explicitly in the "Content-type" meta tag when composing a web page in Armenian. The "charset" value can be either "x-user-defined", or "armscii-8". The latter is preferred, since future implementations of web browsers may recognize this encoding. Sample HTML code to be added in the <head> section:
[PRE[
<meta http-equiv="Content-Type" content="text/html; charset=x-user-defined">
]PRE]
or
[PRE[
<meta http-equiv="Content-Type" content="text/html; charset=armscii-8">
]PRE]