- Non-breaking space
- ASCII character 160
- char code 160
-  
- \u00A0
- %A0
-
볼때는 일반적인 공백으로 보이지만 따로 처리해줘야 할 경우가 생겼다.
RegExp = /\u00A0/ or / /
value = value.replace(/\u00A0/g, ' ');
or
value = value.replace(/ /g, ' ');
참고 :
http://stackoverflow.com/questions/3794919/replace-all-spaces-in-a-string-with
http://www.adamkoch.com/2009/07/25/white-space-and-character-160/
http://hangaebal.blogspot.kr/2014/11/regexp-non-breaking-space-char-code-160.html
'Blogger 이사' 카테고리의 다른 글
[MyBatis] parametertype string test (There is no getter for property named 'xxxx' in 'class java.lang.String') (0) | 2016.04.04 |
---|---|
[JavaScript] 팝업창 열기, 닫기 (popup window open and close) (0) | 2016.04.04 |
[Oracle] VARCHAR 필드 숫자로 정렬 (0) | 2016.04.04 |
[Spring] Spring @responsebody 한글 깨짐 (0) | 2016.04.04 |
[JavaScript] 영문, 숫자, 특수문자, 자릿수 제한 (정규식 이용) (0) | 2016.04.04 |