Linux °æ (¾«»ªÇø)

·¢ÐÅÈË: don (æä·À滨), ÐÅÇø: Linux
±ê  Ìâ: ºº×Ö±àÂë±ê×¼Óëʶ±ð(Ò»)´úÂëÒ³(Code Page)³õʶ 
·¢ÐÅÕ¾: ×Ï ¶¡ Ïã (Sat Apr 29 18:21:01 2000), ×ªÐÅ


--
Ò»Ìõæä·£¬Ò»ÖÖ·ÕΧ¡£
Ò»¶äÀ滨£¬Ò»ÖÖË·¢ÐÅÈË: yanglc (»ê¹éÑàÔ°~~±ðÀíÎÒ£¬·³×ÅÄØ), ÐÅÇø: Linux
±ê  Ìâ: ºº×Ö±àÂë±ê×¼Óëʶ±ð(Ò»)
·¢ÐÅÕ¾: BBS Ë®Ä¾Ç廪վ (Sat Apr 29 17:19:05 2000)

http://www.linuxforum.net/cgi-bin/perl/showpost.pl?Board=chinese&
Number=766&page=2&view=expanded&sb=5

Subject
                   ºº×Ö±àÂë±ê×¼Óëʶ±ð(Ò»)´úÂëÒ³(Code Page)³õʶ

Posted by
                   shuyong
Posted on
                   4/16/2000 9:05 PM


ºº×Ö±àÂë±ê×¼Óëʶ±ð(Ò»)

´úÂëÒ³(Code Page)³õʶ


±¾½ÚÊǸù¾ÝÒÔÏÂÎÄÕ±àд³öÀ´µÄ£¬½¨ÒéÈÏÕæÑжÁÕâЩר¼ÒµÄ¸ßÂÛ¡£
²Î¿¼1 <> ÕÅ Öá ²Ä
<<¼ÆËã»úÊÀ½ç>>Öܱ¨ 97-1-17
²Î¿¼2 <<ÕÅÖá²Ä Ì¸ºº×Ö½»»»Âë±ê×¼½¨Á¢Àú³Ì>> <<¼ÆËã»úÊÀ½ç>>ÖÜ
±¨¼ÇÕß »ÆΰÃô Ð¤´º½­ 99-8-30
²Î¿¼3 <<ÖÐÎÄƽ̨°Ñס¡°¸ù¡±Áôס>> Î⽡ <<Öйú¼ÆËã»ú±¨>>
³ö°æÈÕÆÚ£º1998-12-21¡¡×ÜÆںţº348¡¡±¾ÄêÆںţº51
²Î¿¼4 <<ΪÖÖÖÖUNIXÖÐÎÄƽ̨ºÅÂö>> ËïÓñ·¼ <<Öйú¼ÆËã»úÓû§>>
³ö°æÈÕÆÚ£º1998-07-06¡¡×ÜÆںţº323¡¡±¾ÄêÆںţº26
²Î¿¼5 CJK.INF:ftp://ftp.ora.com/pub/examples/nutshell/ujip/
doc/cjk.inf

ÒòΪ±¾ÈËÖ»ÊÇÒµÓàˮƽ£¬²»ÊÇר¼Ò£¬¶ÔÓڲο¼×ÊÁÏÖÐÐí¶àÊõÓﻹ²»
Àí½â£¬¸üûÓмû¹ýÈκÎÒ»ÖÖ±ê×¼µÄÕýʽÎı¾£¬´íÎóºÍÄ£ºýÖ®´¦ÔÙËù
ÄÑÃ⡣ͬʱ£¬ÒòΪ¹ú¼ÒÓйز¿ÃŶÔÓÚÐû´«£¬ÍƹãºÍ¹á³¹¹ú¼Ò±ê×¼·½
ÃæÁ¦¶È²»¹»£¬ÖÂʹÏóÎÒÕâÑùµÄ³õѧÕß»ò³õÉæ¸ÃÁìÓòµÄСÆóÒµÒòÐÅÏ¢
×ÊÔ´²»×ã¶ø´¦ÓÚ²»ÀûµÄ¾ºÕùµØλ¡£
ASCIIÖƶ©µÄʱºò£¬²¢Ã»Óп¼ÂǶԶàÓïÖÖ£¬ÌرðÊǶÔÏóÖйúºº×ÖÕâÑù
µÄÏóÐÎÎÄ×ÖµÄÖ§³Ö¡£Îª´ËºóÀ´ÓÖÌá³öÁ˲»ÉÙ½â¾ö·½°¸£¬ÆäÖдúÂëÒ³
Ìåϵ(ISO2022)ÊÇÏÖÔÚÆÕ±éʵÐеķ½°¸£¬¶øISO10646/GB13000/Unicode
Êǽñºó·¢Õ¹µÄ·½Ïò¡£
ÖйúµÄºº×Ö±àÂë±ê×¼GB2312ÊÇ7bits±ê×¼£¬¾ßÌå˵ÊÇË«7λ×Ö½Ú±ê×¼¡£
¶øASCIIÊǵ¥7λ×Ö½Ú±ê×¼,¼ÆËã»úÔõôÇø·ÖÄØ?Ò»ÖÖÊÇÔÚµÚ°ËλÖÃ"1",
Ìáʾ¼ÆËã»úתÈëË«×Ö½Ú±àÂë,ÕâÊÇ×î³£¼ûµÄÒ»ÖÖʵÏÖ,Ò²½ÐEUC
(Extended Unix Code)±àÂë.ÁíÒ»ÖÖÊÇÓÃÌØÊâ±ê¼ÇÌáʾ¼ÆËã»úתÈëË«
×Ö½Ú±àÂë,ÈçHZ±àÂë¾ÍÊÇÓÿªÊ¼£¬ÓýáÊøµÄ¿é±êʶ˫×Ö½Ú±àÂëÇø.ËüÃÇ
¶¼ÊÇGB2312µÄÒ»ÖÖʵÏÖ.¶ÔÏóÖйúºº×ÖÕâÑùµÄÏóÐÎÎÄ×ÖÌåϵ£¬´úÂëÒ³
ÊǸù¾Ý¸÷¸ö¹ú¼Ò£¬µØÇø»òÐÐÒµ±ê×¼£¬°´ÕÕEUC·½Ê½±àÂë¡£´úÂëÒ³ÏòÏÂ
¼æÈÝASCII£¬ÊÇÒ»ÖÖ²»µÈ³¤±àÂë¡£»á´øÀ´´úÂëµÄ¸´ÔÓÐÔ£¬Í¬Ê±»¹»áÒý
ÆðÒò´úÂëÒ³Ç뻶ø´øÀ´µÄÂÒÂëÎÊÌâ¡£
UnicodeÊÇÒ»ÖÖ¶à×ֽڵȳ¤±àÂë¡£ISO10646/GB13000/UnicodeÏÖÒÑÔÚ
UCS2ÉÏʵÏÖÒ»Ö£¬Ò²¾ÍÊÇÒÑʵÏÖË«×Ö½Ú±àÂë±ê×¼¡£ÏÂÃæËùÌÖÂÛµÄ
ISO10646/GB13000/Unicode£¬¾ÍÖ»ÊÇÖ¸UCS2ÕâÖÖÇé¿ö¡£Unicode¶Ô
ASCII²ÉÈ¡Ç°Ãæ¼Ó"0"×ֽڵIJßÂÔʵÏֵȳ¤¼æÈÝ¡£Èç"A"µÄASCIIÂëΪ0x41,
UnicodeÂë¾ÍΪ0x00,0x41¡£
ÕâÀïÖ÷Òª´Ó¹ú¼Ò±ê×¼(GB)ϵÁÐÈëÊÖÁ˽âUnicode¡£Èç¹û²»ÊÇ¿´Á˲ο¼5
(Ó¢ÎÄ)£¬ÎÒ»¹²»ÖªµÀ¹ú¼Ò¹ØÓÚºº×Ö±àÂëµÄ±ê×¼Èç´ËÖ®¶à¡£ÖйúÈ˾ÓÈ»
Òª´ÓÓ¢ÎÄ×ÊÁÏÀïÁ˽⺺×Ö±àÂë±ê×¼£¬ÊµÔÚÊǺÜÎÞÄεÄÊÂÇé¡£
³£ÓÃÖÐÎıàÂë±ê×¼ ×ÊÁÏÀ´Ô´:CJK.INF
GB2312-1980(GB0)(¼òÌå) GB7589-1987(GB2)(¼òÌå)
GB7590-1987(GB4)(¼òÌå) GB13000-1993
GB6345.1-1986(GB0ÐÞÕý)
GB8565.2-1988(GB8,GB0À©³ä)
GB/T12345-90(GB1)(·±Ìå) GB/T13131-9X(GB3)(·±Ìå)
GB/T13132-9X(GB5)(·±Ìå)


ÆäÖкáÏò±íʾ×Ö·û¼¯ÏµÁС£×ÝÏò±íʾ¸÷¸öϵÁеķ¢Õ¹±ê×¼¡£ÆäÖÐ
GB2312ÊÇ»ù±¾¼¯£¬Ò²¾ÍÊÇÄ¿Ç°×î³£Óõıê×¼¡£GB7589/GB7590ÊÇÀ©Õ¹
¼¯£¬Ê¹ÓÃʱ¿ÉÄܲ»ÄܺÍGB2312¹²´æ£¬ÐèÒªÇл»Ê¹Óá£GB7589/GB7590
ÊÇ°´²¿¼þ(²¿Ê×)ºÍ±Ê˳(±Ê»­)ÅÅÁУ¬µ«¾ßÌåÓÐʲô×Ö£¬ÔõôÅÅÁУ¬
ÓÃÔÚʲôÁìÓò£¬²»Çå³þ¡£GB2312ϵÁо­¹ýÁ½´ÎÐÞÕýºÍÀ©³ä£¬ÒѺÍÔ­
ʼµÄGB2312-1980±ê×¼ÓÐЩ²»Í¬(²Î¿¼5)¡£ÒòΪûÓбê×¼Îı¾£¬²»Öª
µÀÕýÔÚʹÓõÄ×ÖÌåÊÇÊôÓÚÄĸö±ê×¼¡£¸ù¾Ý×îеÄUnicode3.0£¬¹ú¼Ò
±ê×¼×îеÄÊÇGB16500-95 £¬¸ü²»ÖªÊÇÄĸöϵÁеÄÁË¡£ISO/IEC 10646
µÈͬÓÚGB13000-1993/JIS0221-1995/KSC5000-1995ÕâЩ¹ú¼Ò±ê×¼¡£
Öƶ©µÄÄ¿±êÊÇ°üÈݸ÷ÓïÖÖµÄÎÄ×Ö£¬ÆäÖÐÒÔºº×Ö×î¶à(Unicode2.0ÓÐ
20902¸öºº×Ö)¡£¹ØÓÚ±ê×¼µÄÌصã¿ÉÒÔ¿´²Î¿¼1£¬Öƶ©¹ý³ÌÖеķç·ç
ÓêÓ꣬¿ÉÒÔ¿´²Î¿¼2¡£×ÜÖ®£¬ÕâÊÇÒ»¸öÎÒÃǹú¼Ò²ÎÓë²¢Õ¼Ö÷µ¼µØλ
µÄ¹ú¼Ê±ê×¼¡£
GBKÊÇGB2312ÏòGB13000¹ý¶ÉµÄÒ»¸öÖмä²úÎï¡£ËüÊÇGB2312µÄÒ»´Î´ó
µÄÀ©Õ¹£¬±àÂëÏòϼæÈÝGB2312µÄEUC±àÂ룬×Ö»ã(×Ö·û¼¯)ºÍGB13000
Ïàͬ£¬ÊÇGB2312µÄ3±¶¡£ËùÒÔ˵GBKÒ²°üº¬BIG5£¬Shift-JIS£¬KSCµÄ
×ֻ㡣עÒâÖ»ÊÇ°üº¬×ֻ㣬¶ø±àÂëÓëԭʼµÄ±ê×¼ÊDz»Í¬µÄ¡£ÔÚ¾ßÌå
Ó¦ÓÃÖУ¬ÓÃGBK×ÖÌå¾Í¿ÉÒÔͬʱÏÔʾGB2312£¬BIG5£¬Shift-JIS£¬KSC
µÄ×Ö·û´®¡£µ«³ýÁËGB2312×Ö·û´®£¬ÆäËü¶¼Òª×ª»»(convert)¡£
ÒòΪÓïÑɲ»Ï꣬²»Çå³þÖƶ©GBKʱÊÇË­Õ¼Ö÷µ¼µØλ¡£ÒòΪÓÐЩӢÎÄ×Ê
ÁÏ˵ÊÇMicrosoftÖƶ©ÁËGBK£¬¶ø¹ú¼Ò·½ÃæҲûÓнøÐÐ˵Ã÷¡£Ä¿Ç°´Ó
ÕâЩ²Î¿¼×ÊÁÏÖ»ÖªµÀ£¬94ÄêISO/IEC 10646·¢²¼ºó£¬Microsoft¿ª·¢
Windows95ÖÐÎİ棬ҪÖƶ©ÖÐÎÄÀ©Õ¹±àÂë¡£96Ä꡶ºº×ÖÀ©Õ¹ÄÚÂë¹æ·¶¡·
GBK·¢²¼(²Î¿¼1~3)¡£°´±ê×¼·¢²¼±ÈÖƶ¨ÍíÒ»ÄêÍÆË㣬ÕâÊÇ95ÄêµÄÊ¡£
Windows95¼°ºóÐø°æ±¾ÖÐÎÄ°æÖ§³ÖGBK¡£
GB2312µÄEUC±àÂ뷶ΧÊǵÚÒ»×Ö½Ú0xA1~0xFE(ʵ¼ÊÖ»Óõ½0xF7)£¬µÚ
¶þ×Ö½Ú0xA1~0xFE¡£GBK¶Ô´Ë½øÐÐÀ©Õ¹¡£µÚÒ»×Ö½ÚΪ0x81~0xFE£¬µÚ¶þ
×Ö½Ú·ÖÁ½²¿·Ö£¬Ò»ÊÇ0x40~0x7E£¬¶þÊÇ0x80~0xFE¡£ÆäÖкÍGB2312Ïà
ͬµÄÇøÓò£¬×ÖÍêÈ«Ïàͬ¡£À©Õ¹²¿·Ö´ó¸ÅÊÇ°´²¿¼þ(²¿Ê×)ºÍ±Ê˳(±Ê»­)
´ÓGB13000ÖÐÈ¡³öÔÙÅÅÁÐÈëGBKÖС£Òò´ËGBK²¢²»ÊÇGB13000£¬ËäÈ»Á½Õß
×Ö»ãÏàͬ£¬µ«±àÂëÌåϵ²»Í¬¡£Ò»¸öÊÇISO2022ϵÁв»µÈ³¤±àÂ룬һ¸ö
Êǵȳ¤±àÂ룬²¢ÇÒ±àÂëÇøÓòÒ²²»Í¬¡£×¢Òâµ½GBKʵ¼ÊÉϲ»Êǹú¼Ò±ê×¼¡£
ÔÚ´Ë֮ǰÓÐÒ»¸öGB2312»ù±¾¼¯£¬ÔÚËüÖ®ÉÏÊÇÒ»¸ö¼¼Êõ¸üÏȽøµÄGB13000¡£
GBKÖ»ÊÇÒ»ÖÖ¹ý¶ÉºÍÀ©Õ¹¹æ·¶¡£ËùÒÔÔÚUnicodeÀïÓÐGB2312->Unicode,
GB12345->UnicodeµÄת»»±í¸ñ£¬¶øûÓÐGBK->Unicodeת»»±í¸ñ¡£Ö»ÓÐ
MicrosoftÖÆ×÷µÄCode Page 936(CP936.TXT)¿ÉÒÔËã×÷GBK->Unicode
ת»»±í¸ñ¡£µ«Òª×¢ÒâÕâÊÇÒ»¸öÉÌÒµ¹«Ë¾ÖÆ×÷µÄÎļþ£¬¶ø²»Êǹú¼Ò»ò
¹ú¼Ê±ê×¼×éÖ¯ÖÆ×÷µÄ£¬ÓпÉÄÜÓë±ê×¼Óв»Ò»Öµĵط½¡£×î½üÔÚ·½Õý×Ö
ÌåÍøÕ¾·¢ÏÖһЩÓÐÓõıê×¼Îļþ,ÓÐÐËȤ¿ÉÒÔÏÂÔØ¿´¿´.µ«Òª×¢Òâ
Gbk-big5.tabºÍGb-big5.tabÕâÁ½¸öÎļþÓеã覴Ã.
http://www.founderpku.com/fontweb/download/Gbk-big5.tab
http://www.founderpku.com/fontweb/download/Gb-big5.tab
http://www.founderpku.com/fontweb/gb2312.htm
http://www.founderpku.com/fontweb/gbk.htm
ÔÚʹÓÃÕâЩת»»±íÖÆ×÷ÆäËü±ê×¼µÄÏ໥ת»»±í£¬»áºÍ´«Í³µÄת»»±í
ÓÐËù²»Í¬¡£ÈçÓÃGBK<=>Unicode<=>BIG5ÖÆ×÷GBK<=>BIG5ת»»±í£¬¾Í
»áºÍ´«Í³µÄGB<=>BIG5ת»»±íÓÐËù²»Í¬¡£Ö÷ÒªÊǺº×ÖÓмòÌåºÍ·±Ìå¡£
Ç°ÕßÊÇGBK(Öеķ±Ìå×Ö)<=>BIG5(·±Ìå×Ö)£¬ºóÕßÊÇGB(¼òÌå)<=>BIG5(·±Ìå)¡£
»¹ÓоÍÊǶÔһЩÖƱí·ûÑ¡Óò»Í¬¡£¶Ôºº×Ö·±¼òת»»ÓÐÐËȤµÄ¶ÁÕߣ¬¿ÉÒÔ¿´
http://www.basistech.com/articles/c2c.html
http://www.cjk.org

¼¿¼¡£
Ï£ÍûÄÜÔÚLinuxÕâÌõæä·ÉÏÓëÄãͬÐУ¡

¡ù À´Ô´:£®×Ï ¶¡ Ïã bbs.hit.edu.cn£®[FROM: 202.118.239.63]
[°Ù±¦Ïä] [·µ»ØÊ×Ò³] [Éϼ¶Ä¿Â¼] [¸ùĿ¼] [·µ»Ø¶¥²¿] [Ë¢ÐÂ] [·µ»Ø]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.688ºÁÃë