문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 다음 판 양쪽 다음 판 | ||
unicode [2014/06/22 21:26] kwon37xi |
unicode [2015/05/08 17:22] kwon37xi |
||
---|---|---|---|
줄 19: | 줄 19: | ||
</ | </ | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | ===== Unicode To ASCII Escape ===== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | StringBuilder b = new StringBuilder(); | ||
+ | |||
+ | for (char c : input.toCharArray()) { | ||
+ | if (c >= 128) | ||
+ | b.append(" | ||
+ | else | ||
+ | b.append(c); | ||
+ | } | ||
+ | |||
+ | return b.toString(); | ||
+ | </ | ||
+ |