ÔÚLinux C±à³ÌÖÐʹÓÃUnicodeºÍUTF 8
ÔÚLinux C±à³ÌÖÐʹÓÃUnicodeºÍUTF-8
Ä¿Ç°¸÷ÖÖLinux·¢Ðа涼֧³ÖUTF-8±àÂ룬µ±Ç°ÏµÍ³µÄÓïÑÔºÍ×Ö·û±àÂëÉèÖñ£´æÔÚһЩ»·¾³±äÁ¿ÖУ¬¿ÉÒÔͨ¹ýlocaleÃüÁî²é¿´£º
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
³£Óúº×ÖÒ²¶¼Î»ÓÚBMPÖУ¬ËùÒÔÒ»¸öºº×ֵĴ洢ͨ³£Õ¼3¸ö×Ö½Ú¡£
ÀýÈç±à¼Ò»¸öC³ÌÐò£º
#include <stdio.h>
int main(void)
{
printf("ÄãºÃ\n");
return 0;
}
Ô´ÎļþÊÇÒÔUTF-8±àÂë´æ´¢µÄ£º
$ od -tc nihao.c
0000000 # i n c l u d e < s t d i o .
0000020 h > \n \n i n t m a i n ( v o i
0000040 d ) \n { \n \t p r i n t f ( " 344 275
0000060 240 345 245 275 \ n " ) ; \n \t r e t u r
0000100 n 0 ; \n } \n
0000107
ÆäÖа˽øÖƵÄ344 375 240£¨Ê®Áù½øÖÆe4 bd a0£©¾ÍÊÇ“Ä㔵ÄUTF-8±àÂ룬°Ë½øÖƵÄ345 245 275£¨Ê®Áù½øÖÆe5 a5 bd£©¾ÍÊÇ“ºÃ”¡£
°ÑËü±àÒë³ÉÄ¿±êÎļþ£¬&quo
Ïà¹ØÎĵµ£º
[
ÕªÒª]
Ö¸ÕëÊÇ
CºÍ
C++ÓïÑÔ±à³ÌÖÐ×îÖØÒªµÄ¸ÅÄîÖ®Ò»£¬Ò²ÊÇ×îÈÝÒײúÉúÀ§»ó²¢µ¼Ö³ÌÐò³ö´íµÄÎÊÌâÖ®Ò»¡£ÀûÓÃÖ¸Õë±à³Ì¿ÉÒÔ±íʾ¸÷ÖÖÊý¾Ý½á¹¹
, ͨ¹ýÖ¸Õë¿ÉʹÓÃÖ÷µ÷º¯ÊýºÍ±»µ÷º¯ÊýÖ®¼ä¹²Ïí±äÁ¿»òÊý¾Ý½á¹¹£¬±ãÓÚʵÏÖË«ÏòÊý¾ÝͨѶ£»²¢ÄÜÏñ»ã±àÓïÑÔÒ»Ñù´¦ÀíÄÚ´æµØÖ·£¬´Ó¶ø±à³ö¾«Á·¶ø¸ßЧµÄ³ÌÐò¡£Ö¸Õ뼫´óµØ·á¸»ÁË ......
Ò»Ö±¶¼ºÜÏëÀíÇåubuntuÎļþĿ¼µÄ½á¹¹£¬½ñÌì͵¿ÕÕÒ¸öʱ¼äѧϰһÏ£¬googleÕÒµ½µÄÎÄÕ£¬·ÇÔ´´£¬·¢ÉÏÀ´Ò»ÆðѧϰÏ£º
תÔØ£ºhttp://tech.ccidnet.com/art/305/20080118/1347213_1.html
ÒÔÏÂΪUbuntuĿ¼µÄÖ÷ҪĿ¼½á¹¹£¬ÄúÉÔ΢Á˽âËüÃǶ¼°üº¬ÁËÄÄЩÎļþ¾Í¿ÉÒÔÁË£¬²»ÐèÒª¼ÇÒä¡£
/ ¸ùĿ¼
©¦
©Àboot/ Æô¶¯Îļþ¡£ËùÓÐÓëÏµÍ ......
Vi¾ÍÏ൱windowsÉÏÃæµÄ¼Çʱ¾£¬Äã˵²»Ñ§ÐÐÂ𣿲»Ðеģ¬ÌرðÊÇÔÚserver»·¾³ÏÂÃ棬²»ÓÃÄǶ«Î÷ÎҾͲ»ÖªµÀÔõôÑùÈ¥ÅäÖÃÄÇ´ó¶ÑµÄÅäÖÃÎļþ£¬Èç¹ûviÓõĺõĻ°£¬Äã¿ÉÒÔÔÚÅäÖ÷½Ãæ½ÚÊ¡ºÜ´óµÄÁ¦Æø£¬µ«ÊÇÇ°ÌáÊǵû¨µãʱ¼ä°ÑËûѧºÃ£¬ÎÒÖ»ÖªµÀ×î»ù±¾µÄ²Ù×÷vi£¬µ«ÊÇÓõĺܲ»ºÃ£¬ÎÒ¼ûÒ»¸çÃÇÓÃÄǶ«Î÷ÓõĿÉÌ«ÉñÁË£¬Óùý¶«¶«À´×÷³ÌÐò¿ª·¢£¬Î ......
Linux »ã±àÆ÷£º¶Ô±È GAS ºÍ NASM
¶Ô±È GNU Assembler£¨GAS£©ºÍ Netwide Assembler£¨NASM£©
Ram Narayam (rnaraya2@in.ibm.com), Èí¼þ¹¤³Ìʦ, IBM
2007 Äê 11 ÔÂ 05 ÈÕ
±¾ÎĽâÊÍÁ½ÖÖ×îÁ÷ÐÐµÄ Linux® »ã±àÆ÷ —— GNU Assembler£¨GAS£©ºÍ Netwide Assembler£¨NASM£© —— Ö®¼äһЩ±È½ÏÖØÒªµÄÓï·¨ ......