java»ñȡϵͳ±àÂë
ÓÉÓÚJDKÊǹú¼Ê°æµÄ£¬ÔÚ±àÒëµÄʱºò£¬Èç¹ûÎÒÃÇûÓÐÓÃ-encoding²ÎÊýÖ¸¶¨ÎÒÃǵÄJAVAÔ´³ÌÐòµÄ±àÂë¸ñʽ£¬Ôòjavac.exeÊ×ÏÈ»ñµÃÎÒÃDzÙ×÷ϵͳĬÈϲÉÓõıàÂë¸ñʽ£¬Ò²¼´ÔÚ±àÒëjava³ÌÐòʱ£¬ÈôÎÒÃDz»Ö¸¶¨Ô´³ÌÐòÎļþµÄ±àÂë¸ñʽ£¬JDKÊ×ÏÈ»ñµÃ²Ù×÷ϵͳµÄfile.encoding²ÎÊý(Ëü±£´æµÄ¾ÍÊDzÙ×÷ϵͳĬÈϵıàÂë¸ñʽ£¬ÈçWIN2k£¬ËüµÄֵΪGBK)£¬È»ºóJDK¾Í°ÑÎÒÃǵÄjavaÔ´³ÌÐò´Ófile.encoding±àÂë¸ñʽת»¯ÎªJAVAÄÚ²¿Ä¬ÈϵÄUNICODE¸ñʽ·ÅÈëÄÚ´æÖС£È»ºó£¬javac°Ñת»»ºóµÄunicode¸ñʽµÄÎļþ½øÐбàÒë³É.classÀàÎļþ£¬´Ëʱ.classÎļþÊÇUNICODE±àÂëµÄ£¬ËüÔÝ·ÅÔÚÄÚ´æÖУ¬½ô½Ó×Å£¬JDK½«´ËÒÔUNICODE±àÂëµÄ±àÒëºóµÄclassÎļþ±£´æµ½ÎÒÃǵIJÙ×÷ϵͳÖÐÐγÉÎÒÃǼûµ½µÄ.classÎļþ¡£¶ÔÎÒÃÇÀ´Ëµ£¬ÎÒÃÇ×îÖÕ»ñµÃµÄ.classÎļþÊÇÄÚÈÝÒÔUNICODE±àÂë¸ñʽ±£´æµÄÀàÎļþ£¬ËüÄÚ²¿°üº¬ÎÒÃÇÔ´³ÌÐòÖеÄÖÐÎÄ×Ö·û´®£¬Ö»²»¹ý´ËʱËü¼º¾ÓÉfile.encoding¸ñʽת»¯ÎªUNICODE¸ñʽÁË¡£µ±ÎÒÃDz»¼ÓÉèÖþͱàÒëʱ£¬Ï൱ÓÚʹÓÃÁ˲ÎÊý£ºjavac -encoding gbk XX.java£¬µ±È»¾Í»á³öÏÖ²»¼æÈݵÄÇé¿ö¡£
½â¾ö°ì·¨ÊÇ£ºÓ¦¸ÃʹÓÃ-encoding²ÎÊýÖ¸Ã÷±àÂ뷽ʽ£ºjavac -encoding UTF-8 XX.java
»ñȡϵͳĬÈϱàÂ룺
System.getProperty("file.encoding");
Ïà¹ØÎĵµ£º
LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖƼò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking
Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅÅÐ ......
ÔÚSuse10.1Ï°²×°EOS5.3£¬½çÃæ°´Å¥·²ÖÐÎĶ¼ÊÇ·½¸ñ£¬¿ÉÔÚÖն˲鿴ÖÐÎĶ¼ÊǺõģ¬ÍøÉÏËÑÁ˺ü¸Ì죬ÖÕÓÚŪÃ÷°×ÔÒò¡£
EOS5.3ʹÓõÄÊÇjdk1.4.2£¬ÔÚsuseÏÂûÓÐjdkĬÈÏÒªÇóµÄÖÐÎÄ×ÖÌ壬ÐèÒª×ö¶îÍâµÄÅäÖã¬Ð޸ķ½·¨ÈçÏ£º
1.ʹÓÃsuÃüÁîÇл»ÎªrootÓû§£¬ÔÙʹÓÃcdÃüÁîÇл»µ½jdk°²×°Â·¾¶ÏµÄjre£»ÀýÈ磺
......
detachedCriteria.add(Restrictions.or(
Restrictions.like("chengBanDanWeiIds", rForm.getChengBanDanWeiIds()+(char)13, MatchMode.START),
Restrictions.or(
&n ......
Ò»¡¢JavaÔ´Îļþ
1¡¢Ò»¸öJavaÓ¦Óðüº¬Ò»¸ö»ò¶à¸öJavaÔ´Îļþ£¬Ã¿¸öJavaÔ´ÎļþÖ»ÄÜ°üº¬ÏÂÁÐÄÚÈÝ(¿Õ¸ñºÍ×¢ÊͳýÍâ)
l Áã¸ö»òÒ»¸ö°üÉùÃ÷Óï¾ä
l Áã¸ö»ò¶à¸ö°üÒýÈëÓï¾ä
l Áã¸ö»ò¶à¸öÀàÉùÃ÷Óï¾ä
l Áã¸ö»ò¶à¸ö½Ó¿ÚÉùÃ÷
2¡¢Ã¿¸öJavaÔ´Îļþ¿É°üº¬¶à¸öÀà»ò½Ó¿ÚµÄ¶¨Ò壬µ«ÊÇÖÁ¶àÖ»ÓÐÒ»¸öÀà»òÕß½Ó¿ÚÊÇpublicµÄ£¬¶øÇÒJavaÔ´Îļþ±ØÐëÒÔ ......
1¡¢Óï·¨£ºJava³ÌÐòÔ±±ØÐë±È½ÏÊìϤÓï·¨£¬ÔÚд´úÂëµÄʱºòIDEµÄ±à¼Æ÷¶ÔijһÐб¨´íÓ¦¸ÃÄܹ»¸ù¾Ý±¨´íÐÅÏ¢ ÖªµÀÊÇʲôÑùµÄÓï·¨´íÎó²¢ÇÒÖªµÀÈκÎÐÞÕý¡£
2¡¢ÃüÁ±ØÐëÊìϤJDK´øµÄһЩ³£ÓÃÃüÁî¼°Æä³£ÓÃÑ¡ÏÃüÁîÖÁÉÙÐèÒªÊìϤ£ºappletviewer¡¢ HtmlConverter¡¢jar¡¢ java¡¢ javac¡¢javadoc¡¢javap¡¢javaw¡¢native2ascii¡¢serialv ......