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 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) Markus Kuhn, 1996
.\" İ Copyright (c) Bill Pan www.LinuxForum.net
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" 1995-11-26 Markus Kuhn
.\" First version written
.\"
.TH UTF-8 7 "1995-11-26" "Linux" "Linux Programmer's Manual"
.SH
UTF-8 \- ASCII ݵĶֽ Unicode
.SH
The
.B Unicode
ַʹõ 16 λ˫ֽڣ롣ձ Unicode 뷽
.BR UCS-2 )
һ 16 λ˫ɡ
ַа˵һЩ确\\0/ļл C
⺯оַ
⣬ûشĻֲ ASCII ļ UNIX
߲ܹȷʶ 16 λַˣ
.B UCS-2
.B Unicode
ļıļȵ˵һֺʵⲿ뷽ʽ
.BR "ISO 10646 Universal Character Set (UCS)" ,
Unicode ijʹ 31 λ뷽ʽ
ʹ 32 UCS-4 Ҳͬ⡣
.B UCS-4
.B UTF-8
.B Unicode
.B UCS
Ͳ⡣ԣUTF-8 Ե UNIX ϵͳµ
.B Unicode
ַĽ
.SH
.B UTF-8
ԣ
.TP 0.2i
*
.B UCS
ַ 0x00000000 0x0000007f ͳ
.B US-ASCII
ַرΪֽ 0x00 0x7f ASCII ݣ
ζֻ 7 λ ASCII ַļַ
.B ASCII
.BR UTF-8 .
뷽ʽȫһġ
.TP
*
д 0x7f
.B UCS
ַΪֽСȫ 0x80 0fd ַɣ
Ͳб ASCII ַ
Ϊijֵһ֣
ڡ\\0͡\ַ˵ҲͲˡ
.TP
*
.B UCS-4
ֵеֽڴ˳
.TP
*
2^32 η UCS 붼ܹʹ
.BR UTF-8
б롣
.TP
*
0xfe 0xff ַ
.B UTF-8
вᱻõ
.TP
*
ʾ ASCII
.B UCS
ֽڴĿʼַ 0xc0 0xfd ַָ֮ôijȡ
ֽڴַ 0x80
0xbf ַ֮
ʹͬdz̬ģ
ֽҲ
.TP
*
.B UTF-8
.B UCS
ַӵ 6 ֽڵijȡ
.B Unicode
ֻӵ 3 ֽڳ Linux ֻʹ 16 λ
.B Unicode
.BR UCS
Ӽ Linux £
.B UTF-8
ֽڴᳬֽڡ
.SH 뷽ʽ
ֽڴʾһַʲôոַ UCS е
.TP 0.4i
0x00000000 - 0x0000007F:
.RI 0xxxxxxx
.TP
0x00000080 - 0x000007FF:
.RI 110xxxxx
.RI 10xxxxxx
.TP
0x00000800 - 0x0000FFFF:
.RI 1110xxxx
.RI 10xxxxxx
.RI 10xxxxxx
.TP
0x00010000 - 0x001FFFFF:
.RI 11110xxx
.RI 10xxxxxx
.RI 10xxxxxx
.RI 10xxxxxx
.TP
0x00200000 - 0x03FFFFFF:
.RI 111110xx
.RI 10xxxxxx
.RI 10xxxxxx
.RI 10xxxxxx
.RI 10xxxxxx
.TP
0x04000000 - 0x7FFFFFFF:
.RI 1111110x
.RI 10xxxxxx
.RI 10xxxxxx
.RI 10xxxxxx
.RI 10xxxxxx
.RI 10xxxxxx
.PP
.I xxx
λöλʽַ롣
̵ֻǸ㹻һַĶֽڴ
.SH ˵
.B Unicode
ַ 0xa9 = 1010 1001 (Ȩеķ) UTF-8 бΪ
.PP
.RS
11000010 10101001 = 0xc2 0xa9
.RE
.PP
ַ0x2260 = 0010 0010 0110 0000 (ڡ)Ϊ
.PP
.RS
11100010 10001001 10100000 = 0xe2 0x89 0xa0
.RE
.SH ѭ
ISO 10646, Unicode 1.1, XPG4, Plan 9.
.SH
Markus Kuhn
.SH ο
.BR unicode (7)
.SH "[İά]"
billpan Email: billpan@yeah.net
.SH "[ݸ]"
2000/11/09
.SH "[й Linux ̳ man ֲҳƻ]"
.TP
.BI www.cmpp.net/
|