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

International Chars like umlaute &auml didnt work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1
    • client-libs
    • None
    • sparc
    • solaris_2.5



      Name: mc57594 Date: 01/20/97


      I am in Germany so I have to build programs which are able
      to work with
        the German umlaute like ae, oe,ue.. (\144,\166,\174). (HTML ä
      ö..)
        I am able to write this chars with my keyboard ( compose a", compose
      o"..)
        in a xterm or any other X application but not in a Java Program.
        The input field is a TextField.
        In a applet I dont test it. (Netscape is able to work with umlaute)
        If I write a umlaut in a xterm window and copy it in a Java TextField
      I am able
        to insert suche a char.
       
        A other BUG is in the java.net.URLEncoder.encode class because this
      look only
        for the ASCII value from 0..256 (dontNeedEncoding = new BitSet(256);)
       
        I do a print out with this lines :
        for (int ii = 0; ii < schauspieler.length(); ii++)
        {
          int cc = (int)schauspieler.charAt(ii);
          System.out.println(ii+" - "+schauspieler.charAt(ii)+"-"+cc);
        }
         and get this result :
       
        0 - ?-65508
        1 - ?-65526
        2 - ?-65532
        3 - ?-65476
        4 - ?-65494
        5 - ?-65500
        6 - ?-65503
       
        for the chars &auml;&ouml;&uuml;&Auml;&Ouml;&Uuml;&szig;
       
        I think here a a lot of thinks to solve....
       
        I view the Java SRC src/java/net/URLEncoder.java and wonder that this
      routine
        dont get a array outof bound exception ?
      ======================================================================

            nishimur Naoyuki Ishimura (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: