250x250
Notice
Recent Posts
Recent Comments
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- MSSQL
- Tomcat
- Docker
- Eclipse
- JavaScript
- Python
- maven
- IntelliJ
- SpringBoot
- git
- oracle
- error
- Spring Boot
- 오픈소스
- ubuntu
- JDBC
- PostgreSQL
- 문서
- Open Source
- STS
- AJAX
- Exception
- jpa
- Thymeleaf
- 설정
- spring
- Source
- MySQL
- Core Java
- myBatis
Archives
- Today
- Total
헤르메스 LIFE
[Source] String to Unicode 본문
728x90
public class StringToUni {
public static void main(String[] args) {
String str = "아름다운";
StringBuffer strVal = new StringBuffer();
for(int i = 0; i < str.length();I++) {
char c= str.charAt(i);
strVal.append("\\u" + Integer.toHexString(c));
}
System.out.println(strVal.toString()); // 결과 : \uc544\ub984\ub2e4\uc6b4
}
}
728x90
'Core Java' 카테고리의 다른 글
| [Source] Unicode 2.0 을 Unicode 1.2 로 변환 (0) | 2010.10.20 |
|---|---|
| [Source] Character Set Conversion (0) | 2010.10.20 |
| [Source] Unicode To String (0) | 2010.10.20 |
| [Source] CVS 폴더 삭제 (0) | 2010.09.06 |
| [Source] FTP Client Source (0) | 2010.07.30 |