J
jtl.zheng
I use the following codes to check what encode the file is
-------
FileReader in=new FileReader("E:/aa.txt");
System.out.println(in.getEncoding());
-------
but it always print "GBK" when I point to different files whick I know
they are ANSI , UNICODE and UTF
my system is XP, and I make these different encode files by windows's
note.exe
how can I get the file's encode in java?
and can I write a file with special encode I want?
Thank you very much in advance.
-------
FileReader in=new FileReader("E:/aa.txt");
System.out.println(in.getEncoding());
-------
but it always print "GBK" when I point to different files whick I know
they are ANSI , UNICODE and UTF
my system is XP, and I make these different encode files by windows's
note.exe
how can I get the file's encode in java?
and can I write a file with special encode I want?
Thank you very much in advance.