Java

문자열 형변환

venustas 2011. 9. 20. 11:31
String string2 = new String(string1.getBytes("현재 인코딩"), "변경할 인코딩");

ex : new String(string1.getBytes("ISO-8859-1"), "euc-kr");
저작자표시 비영리 변경금지 (새창열림)