×÷Õß:chenyouji
ÔÚlinuxÏ´ÍøÕ¾µÄʱºò£¬ÂÒÂëÎÊÌâÀ§ÈÅÁËÎҲ¶àÒ»¸öÐÇÆÚ£¬ºóÀ´ÖÕÓÚ½â¾öÁË¡£
ÎÒµÄÌå»á¾ÍÊÇ£ºÓ¦ÓñØÐëºÍÊý¾Ý¿âµÄ×Ö·û¼¯£¨±àÂ룩ÏàÒ»Ö¡£
¾ßÌåµØ˵£¬¾ÍÊÇ£¬Èç¹ûÄãÏëʹÓÃgb2312±àÂ룬ÄǾÍÒª±£Ö¤£ºÃ¿Ò»¸öjspÎļþ¶¼ÊÇÒÔgb2312±àÂë´æ´¢µÄ£¨ÔÚ±£´æÎļþµÄʱºòÑ¡Ôñgb2312±àÂë¾Í¿ÉÒÔÁË£©£¬ÁíÍ⣬ÎļþÍ·»¹Òª¶¨Òå<%@ page contentType="text/html; charset=gb2312" %>;¹ØÓÚÊý¾Ý¿â£¬´´½¨Êý¾Ý¿âʱ¾ÍÒª¶¨Òå±àÂ룬ÀýÈ磺create database mysql default character set gb2312 collate gb2312_chinese_ci;×îºóÒª×öµÃ¾ÍÊÇ£¬Á¬½ÓÊý¾Ýʱ£¬ÔÚÏà¹ØÎļþÖмÓÈëÒÔÏ´úÂ룺useUnicode=true&characterEncoding=gb2312¡£
Òª²¹³ä˵Ã÷µÄÊÇ£¬ÔÚlinuxÏ£¬Æäʵ²»ÓÃÑ¡Ôñgb2312£¬ÎÒ¶¼ÓõÄÊÇutf8£¬µ±È»Ò²ÐèÒª°´ÕÕÒÔÉϲ½Öè½øÐÐÉèÖ㬿϶¨²»»á³öÏÖÂÒÂ룡¸öÈËϲºÃ£¬´ó¼ÒËæÒ⣡
֮ǰÎÒÊÔÁ˺ܶ෽·¨£¬±ÈÈçÔÚ/etc/sysconfig/i18nÎļþÖиÄϵͳ×ÖÌ壬ÔÚ/etc/my.cnfÖÐ[mysqld]×ֶκó¼ÓÈëÈçÏÂÓï¾ädefault-character-set=gb2312µÈµÈ£¬ÎÒ¾õµÃûÓбØÒª¡£
ÒÔÉϲ½Öè¿´Ëƺܼòµ¥£¬µ«ÊÇÎÒµÄʧ°Ü½Ìѵ£¬Ò²ÊÇÎҵijɹ¦Ðĵá£ÏÖÔÚÓë´ó¼Ò·ÖÏí£¬¿´ºóÓÐÊÕ»ñµÄ£¬²»¶¥Ò»Ï¾ÍÊÇÄãµÄ²»ºñµÀÁË£¡
Çؾ¸ ÓÚ 2006-07-26 08:57:54·¢±í:
ÄǾÍÖ§³ÖÏÂÁË£¡
coco ÓÚ 2006-04-13 10:26:02·¢±í:
ºÇºÇ¡£¡£¡£ÄǾÍÖ§³ÖÏÂÁË£¡£¡£¡