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 - ###@###.###
======================================================================
- duplicates
-
JDK-4070242 CharToByte conversion fails for the encoding of Big5
-
- Closed
-