import java.io.UnsupportedEncodingException; public class TestString { public static void main(String []args) { String str = "abcあいうえお"; try { //String -> byte[] byte [] bytes = str.getBytes("UTF-8"); //String.getBytes(); or String.getBytes(encoding); //byte [] -> String String xx = new String(bytes, "UTF-8"); // System.out.println(xx); } catch (UnsupportedEncodingException e) { // TODO 自