remove-non-ascii

#tip

high-ASCII characters ?

  • Non-ASCII characters ๋ฅผ ์˜๋ฏธํ•˜๋Š” ๋“ฏ.

  • 0x0 ~ 0x7F ๋ฐ–์˜ ๋ฌธ์ž๋ฅผ ์ง€์šฐ๊ณ  ์‹ถ์œผ๋ฉด.. (all non-US-ASCII )

  • ์•„๋ž˜์™€ ๊ฐ™์ด ์ฝ”๋“œ ์ž‘์„ฑํ•˜๋ฉด ๋จ.

s = s.replaceAll("[^\\x00-\\x7f]", "");

์ฐธ๊ณ 

  • https://stackoverflow.com/questions/5008422/how-to-remove-high-ascii-characters-from-string-like-in-java

  • https://developer-p.tistory.com/72

Last updated

Was this helpful?