프로그래밍 TIP/JAVA

byte 배열 String Encoding

여름나라겨울이야기 2012. 10. 9. 12:51
728x90
String plainText = null;
byte[] bPlainText = ...; 

try {
   plainText = new String(bPlainText, "UTF-8");
} catch (UnsupportedEncodingException e) {
   e.printStackTrace();
}
반응형