Notice
Recent Posts
Recent Comments
Link
«   2024/03   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
Tags
more
Archives
Today
Total
관리 메뉴

시다바리

[Java] 한글 UniCode 를 한글로 변환 시키는 소스 본문

Language/Java

[Java] 한글 UniCode 를 한글로 변환 시키는 소스

호서아빠 2008. 8. 8. 11:58

/**
 * 한글 UniCode 를 한글로 변환 시키는 소스
 * Myoung-Geun Jang(jangsalt@nextelecom.co.kr)
 * 2008. 5. 9
 */

public class UnicodeToChar {
 public static void main(String[] arg) {
  String uniCodeStr = String.format("\uD14C\uC2A4\uD2B8");
  String[] rawUnicode = uniCodeStr.split("");
 
  int intVal = 0;
  char[] chVal;
 
  for( int i = 0; i < rawUnicode.length; i++ ) {
   chVal = rawUnicode[i].toCharArray();
   for( int j = 0; j < chVal.length; j++ ) {
    intVal = chVal[j];
    System.out.print(chVal[j]);
   }
  }
  System.out.println();
 }
}

Comments