📄 utf-8.htm
字号:
* 111110xx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx (f8-fb)(80-bf)(80-bf)(80-bf)(80-bf)
* 1111110x 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx 10xxxxxx (fc-fd)(80-bf)(80-bf)(80-bf)(80-bf)(80-bf)
</PRE>
<P>为了和<A class=new title=UTF-16
href="http://www.allwiki.com/index.php?title=UTF-16&action=edit">UTF-16</A>的编码空间一致,在最新的ISO
10646的标准里,最多只使用4字节编码。5字节及6字节<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>已不会再使用。 </P>
<P>在<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>文件的开首,很多时都放置一个U+FEFF字符
(<B style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> 以 EF,BB,BF
代表),以显示这个文字档案是以<B style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>编码。
</P>
<DIV class=editsection style="FLOAT: right; MARGIN-LEFT: 5px">[<A
title="编辑本段: 对 UTF-8 的批评"
href="http://www.allwiki.com/index.php?title=UTF-8&action=edit&section=3">编辑</A>]</DIV><A
name=.E5.AF.B9_UTF-8_.E7.9A.84.E6.89.B9.E8.AF.84></A>
<H2>对 <B style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> 的批评 </H2>
<P><B style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>
使用可变长度字节储存,使电脑程式设计变得复杂。 (故此,在电脑程式或操作系统内部,多采用<A class=new title=UTF-16
href="http://www.allwiki.com/index.php?title=UTF-16&action=edit">UCS-2</A>编码。)
</P>
<P>在旧式的中文、日文及韩文编码之中,每字元都使用2字节储存,而<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>须使用3字节。 (采用<A class=new
title=UTF-16
href="http://www.allwiki.com/index.php?title=UTF-16&action=edit">UTF-16</A>编码则可只使用2字节储存。)
</P>
<P><A class=new title=泰语
href="http://www.allwiki.com/index.php?title=%E6%B3%B0%E8%AF%AD&action=edit">泰语</A>以往使用的<A
class=new title="ISO 8859-11"
href="http://www.allwiki.com/index.php?title=ISO_8859-11&action=edit">ISO
8859-11</A>,每字元只使用1字节储存,而<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>须使用3字节。 </P>
<P>此外,在<A title="Windows XP"
href="http://www.allwiki.com/wiki/Windows_XP">Windows
XP</A>版本中的记事本程序如果保存的是编码类似于<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>的<A title=GB2312
href="http://www.allwiki.com/wiki/GB2312">GB2312</A>字符,保存重新打开后将错误显示。例如:使用记事本输入“联通”两个字或“毛”字保存后再打开显示错误,如果不全是编码类似于<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>的GB2312字符则不会出现这种情况。
</P>
<DIV class=editsection style="FLOAT: right; MARGIN-LEFT: 5px">[<A
title="编辑本段: 外部连结"
href="http://www.allwiki.com/index.php?title=UTF-8&action=edit&section=4">编辑</A>]</DIV><A
name=.E5.A4.96.E9.83.A8.E8.BF.9E.E7.BB.93></A>
<H2>外部连结 </H2>
<UL>
<LI><A class="external text"
title=http://www.cl.cam.ac.uk/~mgk25/ucs/utf-8-history.txt
href="http://www.cl.cam.ac.uk/~mgk25/ucs/utf-8-history.txt" rel=nofollow>Rob
Pike tells the story of <B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>'s creation</A>
<LI><A class="external text" title=http://www.cs.bell-labs.com/sys/doc/utf.pdf
href="http://www.cs.bell-labs.com/sys/doc/utf.pdf" rel=nofollow>Original <B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> paper</A>
<LI><A class=external title=http://www.ietf.org/rfc/rfc3629.txt
href="http://www.ietf.org/rfc/rfc3629.txt">RFC 3629</A>, <B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> 标准
<LI><A class=external title=http://www.ietf.org/rfc/rfc2277.txt
href="http://www.ietf.org/rfc/rfc2277.txt">RFC 2277</A>, IETF policy on
character sets and languages
<LI><A class="external text" title=http://www.cl.cam.ac.uk/~mgk25/unicode.html
href="http://www.cl.cam.ac.uk/~mgk25/unicode.html" rel=nofollow><B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> 和 Unicode FAQ</A>
<LI><A class="external text" title=http://www.utf-8.com/
href="http://www.utf-8.com/" rel=nofollow><B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B></A>
<LI><A class="external text" title=http://www.ccss.de/slovo/testuni.htm
href="http://www.ccss.de/slovo/testuni.htm" rel=nofollow><B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> 测试页</A>
<LI><A class="external text"
title=http://www.unics.uni-hannover.de/nhtcapri/multilingual1.html
href="http://www.unics.uni-hannover.de/nhtcapri/multilingual1.html"
rel=nofollow>另一个 <B style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B>
测试页</A>
<LI><A class="external text"
title=http://www.melkor.dnp.fmph.uniba.sk/~garabik/debian-utf8/HOWTO/howto.html
href="http://www.melkor.dnp.fmph.uniba.sk/~garabik/debian-utf8/HOWTO/howto.html"
rel=nofollow><B style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> and
Debian</A> 和 <A class="external text"
title=http://www.linux.org/docs/ldp/howto/Unicode-HOWTO.html
href="http://www.linux.org/docs/ldp/howto/Unicode-HOWTO.html"
rel=nofollow>Linux <B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B> How-To</A>. </LI></UL>
<P><A class=new title="Template:Unicode related"
href="http://www.allwiki.com/index.php?title=Template:Unicode_related&action=edit">Template:Unicode
related</A> </P><!-- Saved in parser cache with key yxtiger1-allwiki_:pcache:idhash:12395-0!1!0!!zh!2!zh and timestamp 20071114112501 -->
<DIV class=printfooter>取自"<A
href="http://www.allwiki.com/wiki/UTF-8">http://www.allwiki.com/wiki/<B
style="COLOR: black; BACKGROUND-COLOR: #ffff66">UTF-8</B></A>"</DIV>
<DIV id=catlinks>
<P class=catlinks><A title=Special:Categories
href="http://www.allwiki.com/index.php?title=Special:Categories&article=UTF-8">页面分类</A>:
<SPAN dir=ltr><A title=Category:编码
href="http://www.allwiki.com/wiki/Category:ç¼–ç ">编码</A></SPAN> | <SPAN
dir=ltr><A title=Category:汉字编码
href="http://www.allwiki.com/wiki/Category:æ±‰å­—ç¼–ç ">汉字编码</A></SPAN>
| <SPAN dir=ltr><A title=Category:字符集
href="http://www.allwiki.com/wiki/Category:字符集">字符集</A></SPAN></P></DIV><!-- end content -->
<DIV class=visualClear></DIV></DIV></DIV></DIV>
<DIV id=column-one>
<DIV class=portlet id=p-cactions>
<H5>Views</H5>
<UL>
<LI class=selected id=ca-nstab-main><A
href="http://www.allwiki.com/wiki/UTF-8">条目</A>
<LI class=new id=ca-talk><A
href="http://www.allwiki.com/index.php?title=Talk:UTF-8&action=edit">讨论</A>
<LI id=ca-edit><A
href="http://www.allwiki.com/index.php?title=UTF-8&action=edit">编辑本页</A>
<LI id=ca-history><A
href="http://www.allwiki.com/index.php?title=UTF-8&action=history">历史</A>
<LI class=selected id=ca-varlang-0><A
href="http://www.allwiki.com/index.php?title=UTF-8&variant=zh">不转换</A>
<LI id=ca-varlang-1><A
href="http://www.allwiki.com/index.php?title=UTF-8&variant=zh-cn">简体</A>
<LI id=ca-varlang-2><A
href="http://www.allwiki.com/index.php?title=UTF-8&variant=zh-tw">繁体</A>
<LI id=ca-varlang-3><A
href="http://www.allwiki.com/index.php?title=UTF-8&variant=zh-hk">disable
<!-- Saved in parser cache with key
yxtiger1-allwiki_:pcache:idhash:4368-0!1!0!!zh!2!zh!edit=0 and timestamp
20070625225338 --></A> </LI></UL></DIV>
<DIV class=portlet id=p-personal>
<H5>Personal tools</H5>
<DIV class=pBody>
<UL>
<LI id=pt-login><A
href="http://www.allwiki.com/index.php?title=Special:Userlogin&returnto=UTF-8">用户登录</A>
</LI></UL></DIV></DIV>
<DIV class=portlet id=p-search>
<H5><LABEL for=searchInput>搜索</LABEL></H5>
<DIV class=pBody id=searchBody style="TEXT-ALIGN: left">
<DIV style="WIDTH: 156px; TEXT-ALIGN: center"><!-- SiteSearch Google -->
<FORM action=http://www.allwiki.com/search.php method=get target=_top>
<TABLE bgColor=#ffffff border=0>
<TBODY>
<TR>
<TD noWrap><INPUT type=hidden value=allwiki.com name=domains></INPUT>
<LABEL style="DISPLAY: none" for=sbi>输入您的搜索字词</LABEL> <INPUT id=sbi
maxLength=255 size=17 name=q></INPUT> </TD></TR>
<TR>
<TD noWrap>
<TABLE>
<TBODY>
<TR>
<TD><INPUT id=ss0 type=radio value="" name=sitesearch></INPUT>
<LABEL title=搜索网络 for=ss0><FONT color=#000000
size=-1>Web</FONT></LABEL></TD>
<TD><INPUT id=ss1 type=radio CHECKED value=allwiki.com
name=sitesearch></INPUT> <LABEL title="搜索 allwiki.com" for=ss1><FONT
color=#000000 size=-1>站内</FONT></LABEL></TD></TR></TBODY></TABLE><LABEL
style="DISPLAY: none" for=sbb>提交搜索表单</LABEL> <INPUT id=sbb type=submit value="Google 搜索" name=sa></INPUT> <INPUT
type=hidden value=pub-1408042288135140 name=client></INPUT> <INPUT
type=hidden value=1 name=forid></INPUT> <INPUT type=hidden value=UTF-8
name=ie></INPUT> <INPUT type=hidden value=UTF-8 name=oe></INPUT> <INPUT
type=hidden
value=GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:11
name=cof></INPUT> <INPUT type=hidden value=zh-CN name=hl></INPUT>
</TD></TR></TBODY></TABLE></FORM><!-- SiteSearch Google --></DIV>
<DIV style="MARGIN-TOP: 20px; WIDTH: 156px; TEXT-ALIGN: center">
<FORM id=searchform action=/wiki/Special:Search>
<DIV><INPUT id=searchInput accessKey=f name=search> <INPUT class=searchButton id=searchGoButton type=submit value=精确标题直达 name=go>
<!-- <input type='submit' name="fulltext" class="searchButton" value="搜索" /> --></DIV></FORM></DIV></DIV></DIV>
<DIV class=portlet id=p-tb>
<H5>工具</H5>
<DIV class=pBody>
<UL>
<LI id=t-whatlinkshere><A
href="http://www.allwiki.com/index.php?title=Special:Whatlinkshere&target=UTF-8">链入页面</A>
<LI id=t-recentchangeslinked><A
href="http://www.allwiki.com/index.php?title=Special:Recentchangeslinked&target=UTF-8">链出更改</A>
<LI id=t-upload><A href="http://www.allwiki.com/wiki/Special:Upload">上载文件</A>
<LI id=t-specialpages><A
href="http://www.allwiki.com/wiki/Special:Specialpages">特殊页面</A>
<LI id=t-print><A
href="http://www.allwiki.com/index.php?title=UTF-8&printable=yes">可打印版</A>
<LI id=t-permalink><A
href="http://www.allwiki.com/index.php?title=UTF-8&oldid=77850">Permanent
link</A> </LI></UL></DIV></DIV></DIV><!-- end of the left (by default at least) column -->
<DIV class=visualClear></DIV>
<DIV id=footer>
<DIV style="LEFT: -1px; FLOAT: left; POSITION: relative; TOP: -13px"></DIV>
<DIV id=f-poweredbyico><A href="http://www.mediawiki.org/"><IMG alt=MediaWiki
src="UTF-8.files/poweredby_mediawiki_88x31.png"></A></DIV>
<UL id=f-list>
<LI id=viewcount>935次浏览
<LI id=credits>2007年8月15日 07:02更新 贡献者:<A title=User:Wikiman
href="http://www.allwiki.com/wiki/User:Wikiman">飞鸟</A> ,<A title=User:Wanglong
href="http://www.allwiki.com/wiki/User:Wanglong">王龙</A> 和 <A title=User:Roc
href="http://www.allwiki.com/wiki/User:Roc">Roc</A>, <A title=User:Yxtiger
href="http://www.allwiki.com/wiki/User:Yxtiger">Yxtiger</A> 和 匿名用户
<LI id=privacy><A title="Allwiki:Privacy policy"
href="http://www.allwiki.com/wiki/Allwiki:Privacy_policy">Privacy policy</A>
<LI id=about><A title=天下维客
href="http://www.allwiki.com/wiki/天下维客">关于天下维客</A>
<LI id=disclaimer><A title=Help:免责声明
href="http://www.allwiki.com/wiki/Help:免责声明">免责声明</A>
</LI></UL></DIV></DIV><!-- Served by server.allwiki.com in 0.409 secs. --></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -