Views 1157 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

웹 페이지를 만들다 보면 아무 이유 없이 공백이 생기는 경우가 있다.

디버거를 통해 확인하면 코드에 없는 "" 이런 이상한 문자가 포함되어 자리를 차지하고 있는 것..


인코딩 문제로 에디터에서도 보이지 않아서 삭제할 수도 없고 ㅠㅠ;

근데 이거 이렇게 vim 명령어로 제거할 수 있다.


$ vim --clean -c 'se nobomb|wq' filename

$ vim --clean -c 'bufdo se nobomb|wqa' filename1 filename2 ...



[출처] https://unix.stackexchange.com/questions/381230/how-can-i-remove-the-bom-from-a-utf-8-file



?

No Articles

Board Pagination Prev 1 ... 70 71 72 73 74 Next
/ 74