Java examples for java.lang:String Unicode
Is iso646 String
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static void main(String[] argv) { byte[] buf = new byte[] { 34, 35, 36, 37, 37, 37, 67, 68, 69 }; System.out.println(iso646String(buf)); }/*ww w . j av a 2s .com*/ static String iso646String(byte[] buf) { try { return new String(buf, "ISO646-US"); } catch (UnsupportedEncodingException uee) { throw new RuntimeException(uee); } } }