Article View: cn.bbs.comp.lang.java
Article #19003Re: �������
From: ��������
Date: Tue, 13 Jan 2004 10:05
Date: Tue, 13 Jan 2004 10:05
24 lines
1865 bytes
1865 bytes
1.ִ���������System.getProperties().list(System.out);
�鿴��ϵͳuser.language,file.encoding��ʲô.
2.�ҵ�file.encoding��GBK,���Ծ���
System.out.println(new String("����".getBytes("GBK"),"GB2312"));
3.Ҳ����˵,ϵͳĬ�ϵľ���GBK,���ô�ISO8859-1ת����.
4.ԭ��:���ܸ�jdk�İ汾�й�,��classpath��,��sun.io.CharToByteDoubleByte.class
��,ϵͳĬ�Ͼ���GBK,ȥ�������,��Ĭ�Ϸ�ʽΪISO8859-1,���ʱ��,���
System.out.println(new String("����".getBytes("ISO8859-1"),"GBK"));
��Ӧ����ʾ������.
�� �� OMEGA (go ahead) �Ĵ������ᵽ: ��
: System.out.println(new String("����".getBytes("ISO8859_1"),"GB2312"));
: ���??
: ���Ӧ��û���⣬�����أ�
: ���У�����ܽ���Ӧ����????�Ŷ�ѽ
: �������ߵȡ�
--
��������,��������.�����,��������.
[m[1;31m�� ��Դ:���Ұ��Ͽ�վ bbs.nankai.edu.cn��[FROM: 202.113.30.129][m
Technical Details
Message-ID:
<4AFCRK$B8K@bbs.nankai.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKaiShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,9dfe8f68eec0e519 X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2004-01-13 02:06:12 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!NanKai From: desertwolf.bbs@bbs.nankai.edu.cn (��������) Newsgroups: cn.bbs.comp.lang.java Subject: Re: ������� Date: 13 Jan 2004 10:05:06 GMT Organization: �Ұ��Ͽ�վ Message-ID: <4AFCRK$B8K@bbs.nankai.edu.cn> X-Filename: Java/M.1073987876.A Lines: 24