본문 바로가기

IT/java

자바 charset 설정

String str ="한글";
byte[] b1 = str.getByte();
byte[] b2 = str.getByte("UTF-8");