🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #20032

��������

#20032
From: ��ޣ���Ҹ�~Ŭ����Ǯ
Date: Wed, 24 Dec 2003 03:47
23 lines
1854 bytes
ASCII�ַ���ɵ�byte[]��ôת�����ַ�
��new String(byte[], "ASCII");��
��ʱ������ʱ����
�����Unicode��ɵ�byte[]�أ����ݶ������ĵġ�
��new String(byte[], "Unicode")ת����ȫ�ǿո�
������ô��
int size=byte[].size();
byte[] b = new byte[1];
StringBuffer sb = new StringBuffer();
for(int i=0;i<size;i++)
{
  b[0] = byte[i];
  sb.append(new String(b, "Unicode"));
}

--
��˧��������������˧����˧�����������
��˧���߲���������ں���
��˧���߲���û�ں�����������˾�׬Ǯ��
35��֮ǰ����������Ի��Ƚ���Ҫ��
������涼����������ؼ�������
200���ƶ��ɽ������ϱ�����ˣ�
�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 218.68.235.21] 
Technical Details
Message-ID: <49lKdO$9iV@bbs.nankai.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!news-out.visi.com!petbe.visi.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,6ddbfbc5aa97e9cb,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-12-23 19:48:16 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!in.100proofnews.com!in.100proofnews.com!news-out.visi.com!petbe.visi.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai
From: kirby.bbs@bbs.nankai.edu.cn (��ޣ���Ҹ�~Ŭ����Ǯ)
Newsgroups: cn.bbs.comp.lang.java
Subject: ��������
Date: 24 Dec 2003 03:47:37 GMT
Organization: �Ұ��Ͽ�վ
Message-ID: <49lKdO$9iV@bbs.nankai.edu.cn>
X-Filename: Java/M.1072237416.A
Lines: 23