사용자 도구

사이트 도구


unicode

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판 양쪽 다음 판
unicode [2014/06/22 21:26]
kwon37xi
unicode [2015/05/08 17:22]
kwon37xi
줄 19: 줄 19:
 </code> </code>
   * [[http://www.fileformat.info/info/unicode/char/3000/index.htm|Unicode Character 'IDEOGRAPHIC SPACE' (U+3000)]]   * [[http://www.fileformat.info/info/unicode/char/3000/index.htm|Unicode Character 'IDEOGRAPHIC SPACE' (U+3000)]]
 +
 +===== Unicode To ASCII Escape =====
 +  * [[http://www.rapidmonkey.com/unicodeconverter/|Web Unicode Converter]]
 +  * [[http://stackoverflow.com/questions/6230190/convert-international-string-to-u-codes-in-java|unicode - Convert International String to \u Codes in java - Stack Overflow]]<code java>
 +StringBuilder b = new StringBuilder();
 +
 +for (char c : input.toCharArray()) {
 +    if (c >= 128)
 +        b.append("\\u").append(String.format("%04X", (int) c));
 +    else
 +        b.append(c);
 +}
 +
 +return b.toString();
 +</code>
 +