Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Javaƽ̨I18N Ö§³Ö¸ÅÊö

Ò»¡¢¹ú¼Ê»¯ºÍ Java ±à³ÌÓïÑÔ
 
ºÍ´ó¶àÊýʹÓÃÆäËüÓïÑԵijÌÐòÔ±²»Í¬£¬Java
³ÌÐòÔ±ÊÇ´óÁ¿¹¹½¨ÔÚ JDK ÖÐÌṩ I18N Ö§³ÖµÄ±ê×¼´úÂëµÄÊÜÒæÕß¡£´ó²¿·Ö´úÂë×î³õÀ´×Ô IBM µÄ Taligent ×Ó¹«Ë¾£¨×ԴӺϲ¢½ø
IBM ÒԺ󣩣¬´ú±íÁËÐí¶àÈËÄêµÄ¹¤×÷³É¹û£¬±È´ó¶àÊý¹«Ë¾¶À×ÔÔÚÆä²úÆ·ÖÐÌṩµÄ´úÂëÒªÇÐʵ¿ÉÐеöࡣ
 
ÕâЩ
´úÂë¼°ÆäÔ¶¼û²¢²»×ÜÊÇÍêÃÀµÄ£»ÀýÈ磬Ç뿴һϠjava.util.Date
ÀàÖÐÐí¶àÆúÓõģ¨deprecated£©·½·¨¡£ÎÒÃÇÖеÄÐí¶àÈË¿ÉÄܼǵÃ̫ƽÑó±ê׼ʱ¼ä£¨Pacific Standard Time£©ÏÔȻҲÊÇ
Java ÊÀ½çʱ¼ä£¨Java World
Time£©¡£È»¶ø£¬¼´Ê¹ÔÚ“´íÎóµÄ¾Éʱ´ú”£¬ÆäËüÓïÑÔҲûÓÐÄÜÓëÕâÖÖÄÚÖõŦÄÜÆ¥µÐµÄ¶«Î÷£¬¼´±ãÓУ¬Ò²ºÜÉÙ¡£ÕâÒ»½ÚµÄÒ³Ãæ¼òÒªµØÌÖÂÛÁË Java
ƽ̨֧³ÖµÄÒ»°ã¹ú¼Ê»¯ÁìÓò¡£
¶þ¡¢Unicode Ö§³Ö
 
Java
ÓïÑÔ×Ö·û¼¯ÊÇ Unicode£¬¶øÇÒÏàÓ¦µØ£¬Ô­Ê¼ char Êý¾ÝÀàÐ͵ij¤¶ÈÊÇÁ½¸ö×Ö½Ú£¨16 룩£¬ÒÔÈÝÄÉ Unicode Öµ¡£ÓÉÓÚ´ó¼ÒÊìϤµÄ
String ÓÉ char ×é³É£¬Òò´Ë String Ò²ÊÇ»ùÓÚ Unicode µÄ¡£Unicode ±¾ÉíÊÇÕâÑù¶¨ÒåµÄ£ºÖµ 0 µ½ 127
Æ¥Åä±ê×¼ ASCII£¬0 µ½ 255 Æ¥Åä ISO 8859-1 (Latin-1) ±ê×¼¡£ÓÉÓÚÕâÒ»ÆðʼֵµÄÒ»ÖÂÐÔ£¬²»Ê¹Óà I18N
¹¦ÄÜ»ò²»ÐèÒªÃæ¶Ô I18N ÎÊÌâµÄ³ÌÐòÔ±¿ÉÒÔ±àдËûÃÇµÄ Java ³ÌÐò¶øÎÞÐèÀí½â»òÖªµÀ Unicode¡£È»¶ø£¬¿¼Âǵ½ Windows
µÄÆÕ±éʹÓ㬸Ãƽ̨µÄ³ÌÐòÔ±Ó¦¸ÃÖªµÀ±ê×¼ ISO 8859-1 ºÍ Windows Latin-1 (cp1252) Ö®¼äµÄ²îÒì¡£
 
16 λ char ³¤¶ÈÔÊÐí 0 µ½ 65535 Ö®¼äµÄÖµ¡£ÌṩÁË Unicode תÒåÒÔÔÚ±¾µØƽ̨²»Ö§³Öʵ¼Ê×Ö·ûʱÈÔÈ»ÔÊÐíÊäÈë¡£Æä¸ñʽÊÇ“u”ºó¸ú 0000 µ½ FFFF µÄËĸöÊ®Áù½øÖÆÊý×Ö¡£ÀýÈ磬ÏÂÃæÁ½ÐдúÂëÊǵȼ۵ģº
char c1 = ′a′;
char c2 = ′u0061′;
 
JDK/JRE µÄ 1.3 °æ±¾Ö§³Ö Unicode 2.1£»1.4 °æ±¾Ö§³Ö Unicode 3.0¡£¸ü¶à¹ØÓÚ Unicode ºÍ³ÆΪ UniBook µÄ Unicode ÏÔʾ³ÌÐòµÄÐÅÏ¢£¬Çë²ÎÔIJο¼×ÊÁÏÖе½ Unicode Consortium µÄÁ´½Ó¡£
Èý¡¢×Ö·û¼¯×ª»»ºÍÁ÷ÊäÈ룯Êä³ö
 
ÉÏ
Ò»Ò³Ìáµ½¹ý Java ×Ö·û¼¯ÊÇ Unicode£¬µ«²¢²»ÊÇËùÓÐƽ̨¶¼Ö§³Ö
Unicode¡£ÄÇô£¬Õâ¸öÏ··¨ÊÇÔõôÍê³ÉµÄÄØ£¿´ð°¸ÊÇ£ºËùÓÐÖ§³Ö×Ö·ûµÄÊäÈëºÍÊä³öÁ÷,¼´ java.io.Reader ºÍ
java.io.Writer ²ã´Î½á¹¹,×Ô¶¯µ÷ÓÃÔÚƽ̨µÄ±¾µØ±àÂëºÍ Unicode
Ö®¼äÖ´ÐÐת»»µÄÒþ²Ø´úÂë²ã¡£Çë×¢Ò⣬±¾µØ±àÂëÊǼÙÉèµÄ¡£Èç¹ûÊý¾Ý²»ÊÇȱʡ±àÂëµÄ£¬Äú½«²»µÃ²»×Ô¼º×ª»»Êý¾Ý¡£ÐÒÔ˵Ä
ÊÇ£¬java.i


Ïà¹ØÎĵµ£º

java doc µÄ°ü×¢ÊÍ

ÏàÐÅ´ó¼Ò¶¼ÓÃjavadocµÄÃüÁîÉú³É¹ýapi help °É£¿µ«ÊÇ°ü×¢ÊÍÔõôÀ´µÄÄØ£¿½ñÌìѧϰԴ´úÂëµÄʱºò·¢ÏÖÁËÕâ¸ö°ü×¢Ê͵ÄÀ´Ô´¡£
±ÈÈ磺org.apache.james.utilÕâ¸öµÄ°ü×¢ÊÍ¡£ÔÚÕâ¸ö°üϱßÓÐÒ»¸öpackage.htmlµÄÎļþ¡£
<body>
<p>A variety of utility classes used inside James.</p>
</body>

ÕâÑùÔÙÓ ......

һЩ³£¼ûJavaÒì³£¹éÀà(Ò»)

UnsupportedClassVersionError
¡¡¡¡²»Ö§³ÖµÄÀà°æ±¾´íÎó¡£µ±JavaÐéÄâ»úÊÔͼ´Ó¶Áȡij¸öÀàÎļþ£¬µ«ÊÇ·¢ÏÖ¸ÃÎļþµÄÖ÷¡¢´Î°æ±¾ºÅ²»±»µ±Ç°JavaÐéÄâ»úÖ§³ÖµÄʱºò£¬Å׳ö¸Ã´íÎó¡£
¡¡¡¡java.lang.VerifyError
¡¡¡¡ÑéÖ¤´íÎó¡£µ±ÑéÖ¤Æ÷¼ì²âµ½Ä³¸öÀàÎļþÖдæÔÚÄÚ²¿²»¼æÈÝ»òÕß°²È«ÎÊÌâʱÅ׳ö¸Ã´íÎó¡£
¡¡¡¡java.lang.VirtualMachineErr ......

java ÃæÊÔÌâ59µÀ£¨º¬²Î¿¼´ð°¸£©


Java
»ù´¡·½Ãæ
:
 
1
¡¢×÷ÓÃÓò
public,private,protected,
ÒÔ¼°²»Ð´Ê±µÄÇø±ð
´ð£º
Çø±ðÈçÏ£º
×÷ÓÃÓò
           
µ±Ç°Àà
       
ͬһ
package  
×ÓËïÀà
     &n ......

JavaÓëC++

1¡¢Java²ÉÓÃUnicode×Ö·û¼¯£¬Ôö¼ÓÁ˶ԷÇÀ­¶¡ÓïϵµÄÖ§³Ö£¬Ò»¸öºº×Ö¿ÉÒÔÖ±½Ó×÷Ϊһ¸ö×Ö·û³£Á¿½øÐи³Öµ¶øÔÚC++ÖбØÐë×öΪ×Ö·û´®´¦Àí
  char chTemp = 'ÎÒ';
  System.out.println(chTemp);
Java×Ö·ûÊÇÒ»¸ö16ΪµÄÎÞ·ûºÅÕûÊý£¬C++ÖÐΪ8λ
2. Java±êʶ·û¿ÉÒÔÒÔÃÀÔª·û$¿ªÍ·£¬¿Éº¬ÓÐËùÓÐÊ®Áù½øÖÆÖµ´óÓÚ0xc0µ ......

java³£ÓÃÉè¼Æģʽ

Éè¼Æģʽ
Ò»¸ö³ÌÐòÔ±¶ÔÉè¼ÆģʽµÄÀí½â:
“²»¶®”ΪʲôҪ°ÑºÜ¼òµ¥µÄ¶«Î÷¸ãµÃÄÇô¸´ÔÓ¡£ºóÀ´Ëæ×ÅÈí¼þ¿ª·¢¾­ÑéµÄÔö¼Ó²Å¿ªÊ¼Ã÷°×ÎÒËù¿´µ½µÄ“¸´ÔӔǡǡ¾ÍÊÇÉè¼ÆģʽµÄ¾«ËèËùÔÚ£¬ÎÒËùÀí½âµÄ“¼òµ¥”¾ÍÊÇÒ»°ÑÔ¿³×¿ªÒ»°ÑËøµÄģʽ£¬Ä¿µÄ½ö½öÊÇ×ÅÑÛÓÚ½â¾öÏÖÔÚµÄÎÊÌ⣬¶øÉè¼ÆģʽµÄ“¸´ÔÓ&rdq ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ