Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6283649

RFE : Support for "sjis", "euc-jp" and "iso-2022-jp" format

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • None

      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

            sherman Xueming Shen
            cphua Choon-Hong Phua (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: