Notice
Recent Posts
Recent Comments
푸른 날개를 꿈꾸는 아이's 메모장
문자 유니코드를 확인합시다 본문
1 2 3 4 | String string = "\t \0" ; for ( int i = 0 ; i < string.length(); i++) { System.out.print(String.format( "\\u%04X " , string.codePointAt(i))); } |
1 2 3 4 5 | byte [] bytes = "한글" .getBytes(); for ( byte b : bytes) { System.out.print(String.format( "0x%02X " , b)); } System.out.println( new String(bytes)); |
Comments