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

jsp,java±àÂëÔ­Àí

Îļþ´ò¿ªÊ±ºòÊÇͨ¹ýÎļþÍ·À´È·¶¨ÎļþµÄ±àÂë
StreamReader   sr=new   StreamReader(@"F:\cym\temp\1.txt");  
  sr.CurrentEncoding   //·µ»Ø±àÂë
ÊÀ½çÉϵĸ÷µØÇø¶¼Óб¾µØµÄÓïÑÔ¡£µØÇø²îÒìÖ±½Óµ¼ÖÂÁËÓïÑÔ»·¾³µÄ²îÒì¡£ÔÚ¿ª·¢Ò»¸ö¹ú¼Ê»¯³ÌÐòµÄ¹ý³ÌÖУ¬´¦ÀíÓïÑÔÎÊÌâ¾ÍÏԵúÜÖØÒªÁË¡£
¡¡¡¡ÕâÊÇÒ»¸öÊÀ½ç·¶Î§ÄÚ¶¼´æÔÚµÄÎÊÌ⣬ËùÒÔ£¬Java
ÌṩÁËÊÀ½çÐԵĽâ¾ö·½·¨¡£±¾ÎÄÃèÊöµÄ·½·¨ÊÇÓÃÓÚ´¦ÀíÖÐÎĵģ¬µ«ÊÇ£¬Íƶø¹ãÖ®£¬¶ÔÓÚ´¦ÀíÊÀ½çÉÏÆäËü¹ú¼ÒºÍµØÇøµÄÓïÑÔͬÑùÊÊÓá£
¡¡¡¡ºº×ÖÊÇË«×ֽڵġ£Ëùν˫×Ö½ÚÊÇÖ¸Ò»¸öË«×ÖÒªÕ¼ÓÃÁ½¸öBYTEµÄλÖ㨼´16룩£¬·Ö±ð³ÆΪ¸ßλºÍµÍλ¡£Öйú¹æ¶¨µÄºº×Ö±àÂëΪGB2312£¬Õâ
ÊÇÇ¿ÖÆÐԵģ¬Ä¿Ç°¼¸ºõËùÓеÄÄÜ´¦ÀíÖÐÎĵÄÓ¦ÓóÌÐò¶¼Ö§³ÖGB2312¡£GB2312°üÀ¨ÁËÒ»¶þ¼¶ºº×ÖºÍ9Çø·ûºÅ£¬¸ßλ´Ó0xa1µ½0xfe£¬µÍλҲÊÇ´Ó
0xa1µ½0xfe£¬ÆäÖУ¬ºº×ֵıàÂ뷶ΧΪ0xb0a1µ½0xf7fe¡£
¡¡¡¡ÁíÍâÓÐÒ»ÖÖ±àÂ룬½Ð×öGBK£¬µ«ÕâÊÇÒ»·Ý¹æ·¶£¬²»ÊÇÇ¿ÖƵġ£GBKÌṩÁË20902¸öºº×Ö£¬Ëü¼æÈÝGB2312£¬±àÂ뷶ΧΪ0x8140µ½0xfefe¡£GBKÖеÄËùÓÐ×Ö·û¶¼¿ÉÒÔÒ»Ò»Ó³Éäµ½Unicode 2.0¡£
¡¡¡¡ÔÚ²»¾ÃµÄ½«À´£¬Öйú»á°ä²¼ÁíÒ»ÖÖ±ê×¼£ºGB18030-2000£¨GBK2K£©¡£ËüÊÕ¼Á˲ء¢ÃɵÈÉÙÊýÃñ×åµÄ×ÖÐÍ£¬´Ó¸ù±¾ÉϽâ¾öÁË×Öλ²»×ãµÄ
ÎÊÌâ¡£×¢Ò⣺Ëü²»ÔÙÊǶ¨³¤µÄ¡£Æä¶þ×Ö½Ú²¿·ÝÓëGBK¼æÈÝ£¬ËÄ×Ö½Ú²¿·ÖÊÇÀ©³äµÄ×Ö·û¡¢×ÖÐΡ£ËüµÄÊ××ֽں͵ÚÈý×Ö½Ú´Ó0x81µ½0xfe£¬¶þ×ֽں͵ÚËÄ×Ö½Ú´Ó
0x30µ½0x39¡£
¡¡¡¡±¾ÎIJ»´òËã½éÉÜUnicode£¬ÓÐÐËȤµÄ¿ÉÒÔä¯ÀÀ“http://www.unicode.org/”²é¿´¸ü¶àµÄÐÅÏ¢¡£UnicodeÓÐÒ»¸öÌØÐÔ£ºËü°üÀ¨ÁËÊÀ½çÉÏËùÓеÄ×Ö·û×ÖÐΡ£ËùÒÔ£¬¸÷¸öµØÇøµÄÓïÑÔ¶¼¿ÉÒÔ½¨Á¢ÓëUnicodeµÄÓ³Éä¹Øϵ£¬¶øJava
ÕýÊÇÀûÓÃÁËÕâÒ»µãÒÔ´ïµ½ÒìÖÖÓïÑÔÖ®¼äµÄת»»¡£
¡¡¡¡ÔÚJDKÖУ¬ÓëÖÐÎÄÏà¹ØµÄ±àÂëÓУº
¡¡¡¡±í1¡¡JDKÖÐÓëÖÐÎÄÏà¹ØµÄ±àÂëÁбí
±àÂëÃû³Æ ˵Ã÷
ASCII 7룬Óëascii7Ïàͬ
ISO8859-1 8-룬Óë 8859_1,ISO-8859-1,ISO_8859-1,latin1...µÈÏàͬ
GB2312-80 16룬Óëgb2312,gb2312-1980,EUC_CN,euccn,1381,Cp1381, 1383, Cp1383, ISO2022CN,ISO2022CN_GB...µÈÏàͬ
GBK ÓëMS936Ïàͬ£¬×¢Ò⣺Çø·Ö´óСд
UTF8 ÓëUTF-8Ïàͬ
GB18030 Óëcp1392¡¢1392Ïàͬ£¬Ä¿Ç°Ö§³ÖµÄJDKºÜÉÙ
¡¡¡¡ÔÚʵ¼Ê±à³Ìʱ£¬½Ó´¥µÃ±È½Ï¶àµÄÊÇGB2312£¨GBK£©ºÍISO8859-1¡£
¡¡¡¡ÎªÊ²Ã´»áÓГ?”ºÅ
¡¡¡¡ÉÏÎÄ˵¹ý£¬ÒìÖÖÓïÑÔÖ®¼äµÄת»»ÊÇͨ¹ýUni


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

javaÏß³Ì

1.Ï̴߳´½¨µÄÁ½ÖÖ·½Ê½
1£©À©Õ¹ThreadÀಢÖØдpublic void run()·½·¨
ps£º
¶¨ÒåỊ̈߳º
class myThread extends Thread(){
         public void run(){
                System.out.println("Ju ......

JAVA ×Ô¶¯Éú³ÉiBATIS xmlÎļþl

3.package com.ncs.opts.tools;
import java.util.HashMap;
import java.util.Map;
import com.ncs.opts.common.icp.dao.po.audit.IcpMainHistory;
import com.ncs.opts.common.icp.dao.po.audit.IcpModifyHistory;
import com.ncs.opts.common.icp.dao.po.audit.IcpSiteAccessHistory;
import com.ncs.opts.common.i ......

JavaÖеÄIOÁ÷֪ʶ×ܽᣨת£©

×ܽáÒ»£º
Java IOµÄÒ»°ãʹÓÃÔ­Ôò£º
Ò»¡¢°´Êý¾ÝÀ´Ô´£¨È¥Ïò£©·ÖÀࣺ
1¡¢ÊÇÎļþ£º FileInputStream, FileOutputStream, FileReader, FileWriter
2¡¢ÊÇbyte[]£ºByteArrayInputStream, ByteArrayOutputStream
3¡¢ÊÇChar[]: CharArrayReader, CharArrayWriter
4¡¢ÊÇString: StringBufferInputStream, StringReader, StringW ......

JSP/ServletÖбàÂëÎÊÌâ½â¾ö·½°¸

Ê×ÏÈ£¬ËµËµJSP/ServletÖеļ¸¸ö±àÂëµÄ×÷Óá£
 
ÔÚJSP/ServletÖÐÖ÷ÒªÓÐÒÔϼ¸¸öµØ·½¿ÉÒÔÉèÖñàÂ룬pageEncoding="UTF-8"¡¢contentType="text/html;charset=UTF-8"¡¢request.setCharacterEncoding("UTF-8")ºÍresponse.setCharacterEncoding("UTF-8")£¬ÆäÖÐÇ°Á½¸öÖ»ÄÜÓÃÓÚJSPÖУ¬¶øºóÁ½¸ö¿ÉÒÔÓÃÓÚJSPºÍServletÖС£
1¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ