Omitted characters in String.getBytes()

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.2
    • Component/s: core-libs
    • None
    • x86
    • windows_95



      Name: joT67522 Date: 09/02/97


      Characters > 127 in a String cause the next character to be
      skipped in the byte array returned by String.getBytes().

      String s = "Über Östrogene...";
      byte[] b = s.getBytes( s);
      System.out.println( "The string now reads: " + (new String( b)));

      This prints:

      The string now reads: Üer Ötrogene...

      As String.getBytes() uses a CharToByteConverter, the bug should
      there.

      company - GMD , email - ###@###.###
      ======================================================================

            Assignee:
            Shanmugam Senthil (Inactive)
            Reporter:
            Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: