1 import java
.io
.UnsupportedEncodingException
;
5 public static void main(String
[] args
)
8 byte[] txt
= new byte[] {-55, 87, -55, -42, -55, -20};
9 // This new String(...) should not throw an OutOfMemoryError.
10 String s
= new String(txt
, 0, 6, "MS932");
11 } catch (UnsupportedEncodingException e
) {
14 System
.out
.println("ok");