Using jdk 1.5.0 , it appear that when the customer does a string input
read from a file say shift_jis.htm encoding
eg
java.io.BufferedReader br = new java.io.BufferedReader ( new
java.io.InputStreamReader ( new java.io.FileInputStream
("/export/home/chphua/sunone/ias/sjas8.1ee/nodeagents/puffer/DefaultGC/applications/j2ee-apps/app1/app1_war/shift_jis.htm"),
"shift_jis" ) );
String nextLine = br.readLine ();
StringBuffer buf = new StringBuffer();
while ( nextLine != null )
{
buf.append(nextLine);
nextLine = br.readLine ();
}
the output is corrupt. ( see result.gif )
###@###.### 2005-06-10 02:06:48 GMT