Java 한글깨짐 String Encoding 샘플
1234567891011121314151617181920212223242526272829303132333435System.out.println("UTF-8 -> EUC-KR : " + new String(msgName.getBytes("UTF-8"), "EUC-KR"));System.out.println("UTF-8 -> KSC5601 : " + new String(msgName.getBytes("UTF-8"), "KSC5601"));System.out.println("UTF-8 -> X-WINDOWS-949 : " + new String(msgName.getBytes("UTF-8"), "X-WINDOWS-949"));System.out.println("UTF-8 -> ISO-8859-1 : " + ne..
프로그램 언어/Java
2014. 5. 2. 15:08