String(byte[] bytes, String charsetName)
Constructs a new String by decoding the specified array of bytes using the specified charset.例子:
String a="asdfasdfas";
String b= new String(a..getBytes(),"IS)-8859-1");//就是你所要的
Constructs a new String by decoding the specified array of bytes using the specified charset.例子:
String a="asdfasdfas";
String b= new String(a..getBytes(),"IS)-8859-1");//就是你所要的
用nodepad打开,然后选择存储为UNICODE文件即可应付,应付
是不是还应该用2000的Nodepad啊?
呵呵
98的不行吧?
有趣啊
byte[] bytes=source.getBytes("UTF-16BE");
short A[100];
char B[100];
strcpy(B, message);
for(int i=0;i<100;i++)
{
A[i]=B[i];
}