linuxÖÐÎÄÂÒÂëÎÊÌâ
linuxÖÐÎÄÂÒÂëÎÊÌâ
×î½ü£¬¹«Ë¾ÔÚXPϵͳÓÚLINUXÖ®¼ä´«Êý¾Ýʱ³öÏÖÁËÖÐÎÄÂÒÂëÎÊÌâ!
Ê×ÏÈ£¬½âÊÍÒ»ÏÂ×Ö·û¼¯£º
ºº×Ö±àÂë:
* GB2312×Ö¼¯ÊǼòÌå×Ö¼¯£¬È«³ÆΪGB2312(80)×Ö¼¯£¬¹²°üÀ¨¹ú±ê¼òÌ庺×Ö6763¸ö¡£ * BIG5×Ö¼¯ÊÇ̨Íå·±Ìå×Ö¼¯£¬¹²°üÀ¨¹ú±ê·±Ì庺×Ö13053¸ö¡£ * GBK×Ö¼¯ÊǼò·±×Ö¼¯£¬°üÀ¨ÁËGB×Ö¼¯¡¢BIG5×Ö¼¯ºÍһЩ·ûºÅ£¬¹²°üÀ¨21003¸ö×Ö·û¡£ * GB18030Êǹú¼ÒÖƶ¨µÄÒ»¸öÇ¿ÖÆÐÔ´ó×Ö¼¯±ê×¼£¬È«³ÆΪGB18030-2000£¬ËüµÄÍƳöʹºº×Ö¼¯ÓÐÁËÒ»¸ö“´óһͳ”µÄ±ê×¼¡£
ASCII:
American Standard Code for Information Interchange£¬ÃÀ¹úÐÅÏ¢½»»»±ê×¼Â롣Ŀǰ¼ÆËã»úÖÐÓõÃ×î¹ã·ºµÄ×Ö·û¼¯¼°Æä±àÂ룬ÓÉÃÀ¹ú¹ú¼Ò±ê×¼¾Ö(ANSI)Öƶ¨¡£ ËüÒѱ»¹ú¼Ê±ê×¼»¯×éÖ¯(ISO)¶¨Îª¹ú¼Ê±ê×¼£¬³ÆΪISO 646±ê×¼¡£ ASCII×Ö·û¼¯ÓÉ¿ØÖÆ×Ö·ûºÍͼÐÎ×Ö·û×é³É¡£ÔÚ¼ÆËã»úµÄ´æ´¢µ¥ÔªÖУ¬Ò»¸öASCIIÂëÖµÕ¼Ò»¸ö×Ö½Ú(8¸ö¶þ½øÖÆλ)£¬Æä×î¸ßλ(b7)ÓÃ×÷ÆæżУÑéλ¡£ËùνÆæżУÑ飬ÊÇÖ¸ÔÚ´úÂë´«Ë͹ý³ÌÖÐÓÃÀ´¼ìÑéÊÇ·ñ³öÏÖ´íÎóµÄÒ»ÖÖ·½·¨£¬Ò»°ã·ÖÆæУÑéºÍżУÑéÁ½ÖÖ¡£ÆæУÑé¹æ¶¨:ÕýÈ·µÄ´úÂëÒ»¸ö×Ö½ÚÖÐ1µÄ¸öÊý±ØÐëÊÇÆæÊý£¬Èô·ÇÆæÊý£¬ÔòÔÚ×î¸ßλb7Ìí1¡£Å¼Ð£Ñé¹æ¶¨:ÕýÈ·µÄ´úÂëÒ»¸ö×Ö½ÚÖÐ1µÄ¸öÊý±ØÐëÊÇżÊý£¬Èô·ÇżÊý£¬ÔòÔÚ×î¸ßλb7Ìí1¡£
UTF:
Unicode µÄʵÏÖ·½Ê½²»Í¬ÓÚ±àÂ뷽ʽ¡£Ò»¸ö×Ö·ûµÄUnicode±àÂëÊÇÈ·¶¨µÄ£¬µ«ÊÇÔÚʵ¼Ê´«Êä¹ý³ÌÖУ¬ÓÉÓÚ²»Í¬ÏµÍ³Æ½Ì¨µÄÉè¼Æ²»Ò»¶¨Ò»Ö£¬ÒÔ¼°³öÓÚ½ÚÊ¡¿Õ¼äµÄÄ¿µÄ£¬¶ÔUnicode±àÂëµÄʵÏÖ·½Ê½ÓÐËù²»Í¬¡£ UnicodeµÄʵÏÖ·½Ê½³ÆΪUnicodeת»»¸ñʽ(Unicode Translation Format£¬¼ò³ÆΪ UTF)¡£ * UTF-8: 8bit±ä³¤±àÂ룬¶ÔÓÚ´ó¶àÊý³£ÓÃ×Ö·û¼¯(ASCIIÖÐ0~127×Ö·û)ËüֻʹÓõ¥×Ö½Ú£¬¶ø¶ÔÆäËü³£ÓÃ×Ö·û(ÌرðÊdz¯ÏʺͺºÓï»áÒâÎÄ×Ö)£¬ËüʹÓÃ3×Ö½Ú¡£ * UTF-16: 16bit±àÂ룬ÊDZ䳤Â룬´óÖÂÏ൱ÓÚ20λ±àÂ룬ֵÔÚ0µ½0x10FFFFÖ®¼ä£¬»ù±¾ÉϾÍÊÇunicode±àÂëµÄʵÏÖ£¬ÓëCPU×ÖÐòÓйء£
×¢Ò⣺ASCII char (2) ;UTF-8 ¿í×Ö·û wchar 4±¶ ¡£¼æÈÝÐÔ×îºÃµÄ±àÂë¾ÍÊÇUTF-8! ±Ï¾¹GBK/GB2312ÊǹúÄڵıê×¼£¬µ±ÎÒÃÇ´óÁ¿Ê¹ÓùúÍâµÄ¿ªÔ´Èí¼þʱ£¬UTF-8²ÅÊDZàÂë½ç×îͨÓõÄÓïÑÔ¡£
ÔÚLinuxÖÐͨ¹ýlocaleÀ´ÉèÖóÌÐòÔËÐеIJ»Í¬ÓïÑÔ»·¾³£¬localeÓÉANSI CÌṩ֧³Ö¡£localeµÄÃüÃû¹æÔòΪ<ÓïÑÔ>_<µØÇø>.<×Ö·û¼¯±àÂë>£¬Èçzh_CN.UTF-8£¬zh´ú±íÖÐÎÄ£¬CN´ú±í´ó½µØÇø£¬UTF-8±íʾ×Ö·û¼¯¡£ÔÚlocale»·¾³ÖУ¬ÓÐÒ»×é±äÁ¿£¬´ú±í¹ú¼Ê»¯»·¾³ÖеIJ»Í¬ÉèÖãº
1. LC_COLLATE
¶¨Òå¸Ã»·
Ïà¹ØÎĵµ£º
ÏÖÔÚ´ó¼Ò¶ÔQ5µÄÌÖÂÛÒѾÉÏÉýµ½·¢ÐаæºÍ×ÀÃæ»·¾³µÄ³Ì¶ÈÁË……¹À¼Æ̳×ÓÀïÓÐÐí¶à·ÇLINUXÍæ¼Ò¿ÉÄÜÌýµÃÔÆÀïÎíÀï°É£¿ÎÒ´ó¸Å½²Ò»Ð©ÎÒÖªµÀµÄ£¬±È½Ï¼òµ¥¶øÇÒʵÓõÄС֪ʶ£¬Ï£ÍûÄܹ»Í¬Ñ§ÃÇÒ»µã°ïÖú¡£
°´ÕÕ¹ßÀý£¬Ê×ÏȱØÐë³ÎÇåÒ»ÏÂLinuxµÄ¶¨Òå¡£ºÜ¶àͬѧ¿ÉÄܶ¼ÎóÒÔΪLinux¾ÍÊÇÒ»¸ö²Ù×÷ϵͳ£¬ÑϸñÀ´½²£¬ÕâÊDz»¶ÔµÄ¡£linux×÷ ......
°ÑUÅ̳̿ɹâÅÌ£¨ÒÔubuntu9.10ΪÀý£©
Ç°Ì᣺µçÄÔÖ§³ÖUÅÌÆô¶¯£¬ÓÐЩµçÄÔÊDz»Ö§³ÖµÄ¡£
¿ªÊ¼ÖÆ×÷
Ò»¡¢²ÄÁÏ£º
UltraISO£¨Èíµúͨ£©Èí¼þ
ubuntu 9.10 iso
uÅÌ£¨ÍƼö1GÒÔÉÏ£©¡£
¶þ¡¢²Ù×÷ƽ̨£º
windows xp/vista £ÛÎÒÊÇÔÚvistaÏÂÖÆ×÷µÄ£¬±ØÐëÓùÜÀíԱȨÏÞ´ò¿ªUltraISO£¨Èíµúͨ£©£Ý£¨ÓÒ»÷Æä¿ì½Ý·½Ê½£¬ÒÔ¹ÜÀíÔ±Éí·Ö´ò¿ª£©
˵ ......
ÍøÂçÉϺÍÊéÉÏÓи÷ÖÖÅäÖÃJDK»·¾³±äÁ¿µÄ·½·¨£¬µ«ÊÇÈ·ÃèÊö²»Ò»Ö£¬¸ø³õѧÕßÔì³ÉÁËÒ»¶¨µÄÀ§ÄÑ£¨ÏëÆðµ±Ê±µÄÎÒ£©¡£ÒÔÏÂÊÇÎÒ×Ô¼º×ܽáµÄ£¬°Ù·Ö°Ù¿ÉÒÔÓá£
´ËÎÄÏêÊöÁËÈçºÎÔÚwindowsºÍlinuxÏÂÅäÖû·¾³±äÁ¿¡£
Ò»¹²ÐèÒªÅäÖÃ3¸ö±äÁ¿£º
JAVA_HOME£ºÖ÷ÒªÊÇΪÁËÆäËüÁ½¸öʹÓ㬼ò»¯ÅäÖã¬jdk°²×°µÄÍêÕûµÄ·¾¶Ãû£¬Ò»Ö±µ½jdk...Ϊֹ¡£
CLAS ......
1. ÓÐЩÃüÁî²ÎÊý¹ý¶à£¬¿ÉÒÔÓÃgrepÀ´·½±ã²éÕÒ£¬È磺
iptables -h 2>&1|grep '\-A'
ÆäÖÐ2>&1½«stderrתÏòstdout£¬È»ºóÎÒÃǾͿÉÒÔͨ¹ýgrepÕÒµ½ÐèÒªµÄÑ¡ÏҪעÒâµÄÊǺá¸Ë֮ǰҪ¼Ó·´Ð±¸ ......
qtĬÈϵıà³ÌÓïÑÔΪC++ÓïÑÔ¡£Èç¹ûÄãÓÃqt±àÒë.cÎļþ£¬»á³öÏÖÕÒ²»µ½CÓïÑÔµÄĬÈÏÍ·ÎļþµÈ´íÎó£¨È磺stdio.hµÈ£©¡£qtÖв»Ö§³Ö
extern "C"{}µÄÕâÖÖд·¨£¬ÎÒÇ°¼¸ÌìÓÐÒ»¸öC³ÌÐòÐèÒªÒÆÖ²µ½QtµÄ¹¤³ÌÖУ¬±¾Ï£ÍûÖ±½Óextern "C"¾ÍokÁË£¬µ«·¢ÏÖqt4¾ÓÈ»²»Ö§³ÖÕâÖÖд·¨¡£ÎҵijÌÐòÖÐÓõ½Á˺ü¸¸ölinuxϵͳͷÎļþ£¬ÊÇÏò´®¿Ú·¢Ö¸ÁîÖ®ÀàµÄ³ÌÐò ......