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

socketͨÐÅjava»òc#ÖÐÎÄÂÒÂëÎÊÌâ

C#ÖÐÏÔʾÖÐÎÄ£º
¡¾
·¢ËÍÊý¾Ý£º  
  string   sReturnData   =   "ÄãºÃ";  
  Byte[]  
bReturnData   =   Encoding.ASCII.GetBytes(sReturnData.ToCharArray());  
 
m_sktSession.Send(bReturnData); 
¡¾½«³öÏÖÂÒÂë¡¿
¡¿ 
½â¾ö·½°¸£º
±àÂëÓÃutf-8  
  string   sReturnData   =   "ÄãºÃ";  
  Byte[]  
bReturnData   =   UTF8Encoding.UTF8.GetBytes(sReturnData);  
  ½âÂëÒ²Óà  
utf-8  
  string   sReturnData   =  
UTF8Encoding.UTF8.GetString(sReturnData)
javaÖÐÏÔʾÖÐÎÄ£º
 ¡¾
os.write(temp.getBytes("ISO-8859-1"));
¡¾½«³öÏÖÂÒÂë¡¿
¡¿
½â¾ö·½°¸£º
os.write(temp.getBytes("UTF-8"));


Ïà¹ØÎĵµ£º

Java µ÷Óà .Net Web Service ÎÊÌâ½â¾ö·½·¨·ÖÏí

Óкܳ¤Ò»¶Îʱ¼äûÓÐд²©¿ÍÁË¡£×î½üÒ»Ä꣬ÊÕµ½²»ÉÙ½»Á÷Óʼþ¶¼ÊǹØÓÚwebservice£¬´ó²¿·Ö¶¼ÊÇËØÒªwebserviceʵÀý¡£
Æäʵ¶Ôwebservice Á˽ⲻÊǺÜÉֻÊǸù¾Ý¹¤×÷ÐèҪȥ½Ó´¥£¬È¥Ñ§Ï°¡£×î½üÏîÄ¿ºÍÆäËûÒ»¸ö.netÏîÄ¿ÐèÒª×öÊý¾Ý½»»¥£¬½»»¥·½Ê½¾Í²ÉÓÃWebservice.
Ìؽ«¿ª·¢ÖÐÓöµ½µÄÎÊÌâ×ܽᲢ·ÖÏí£»
¿ª·¢ÖÐÓöµ½µÄÎÊÌâÓУº
1£©jav ......

JavaÐòÁл¯¼òÃ÷¸ÅÒª

1. ¸ÅÄ ÐòÁл¯¾ÍÊǰѶÔÏó±ä³É¶ÔÏóÁ÷£¨È·ÇÐ˵ÊǰѶÔÏóµÄÊôÐÔдÈëÁ÷£©£¬Èç¹ûÐèÒª½ø¶ø¿ÉÒ԰ѶÔÏóÁ÷´æ³É¶þ½øÖÆÎļþ£»
2. Ä¿µÄ£º ÐòÁл¯µÄÄ¿µÄÊÇΪÁË·½±ãÓÀ¾Ã´æ´¢»òÕßÍøÂç´«Ê䣻
3. ÈçºÎʵÏÖ£º ½«ÀàʵÏÖSerializable½Ó¿Ú¼´¿É£¬ÎÞ±ØÐëʵÏֵķ½·¨£¬ÊµÏָýӿÚÖ»ÊÇΪÁ˱êʶ¸ÃÀà¿É±»ÐòÁл¯£»
4. £¨×ª£©ÆäËûÐèÒªÖªµÀµÄ£º
  ......

Java¸ß¼¶ÌØÐÔ 1

1.¾²Ì¬µ¼È룺
¾²Ì¬µ¼ÈëÊÇJDK1.5ºóмӵŦÄÜ£¬Ò»°ã²»Ôõô³£Ó㬺ܼòµ¥¸øÄã¾Ù¸öÀý×ÓÄã¾ÍÄÜÃ÷°×ÁË£¬¿´Õâ¶Î´úÂ룺
import static java.lang.System.out;//µ¼Èëjava.lang°üϵÄSystemÀàµÄ¾²Ì¬·½·¨out;
public class HelloWorld{
public static void main(String[] args){
out.print("Hello World!");//¼ÈÊÇÔÚÕ ......

JNI¼¼ÊõʵÏÖJAVA³ÌÐòµ÷ÓÃdll


JAVAµÄ¿çƽ̨µÄÌØÐÔÉîÊÜjava³ÌÐòÔ±ÃǵÄϲ°®,µ«ÕýÊÇÓÉÓÚËüΪÁËʵÏÖ¿çƽ̨µÄÄ¿µÄ,ʹµÃËüºÍ±¾µØ»úÆ÷µÄ¸÷ÖÖÄÚ²¿ÁªÏµ±äµÃºÜÉÙ,´ó´óÔ¼ÊøÁËËüµÄ¹¦ÄÜ,±ÈÈçÓëһЩӲ¼þÉ豸ͨÐÅ,ÍùÍùÒª»¨·ÑºÜ´óµÄ¾«Á¦È¥Éè¼ÆÁ÷³Ì±àд´úÂëÈ¥¹ÜÀíÉ豸¶Ë¿Ú,¶øÇÒÓÐһЩÉ豸³§ÉÌÌṩµÄÓ²¼þ½Ó¿ÚÒѾ­¾­¹ýÒ»¶¨µÄ·â×°ºÍ´¦Àí,²»ÄÜÖ±½ÓʹÓÃjava³ÌÐòͨ¹ý¶Ë¿ÚºÍÉè± ......

java ¼¯ºÏ

< type="text/javascript"> document.body.oncopy = function() { if (window.clipboardData) { setTimeout(function() { var text = clipboardData.getData("text"); if (text && text.length>300) { text = text + "\r\n\n±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£º" + location.href; clipboardData.setData( ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ