인코딩을 변환해주는 명령어인 iconv 사용법은 많이 나와있으나, curl을 통해 받아온 페이지를 인코딩하는 법은?
파이프라인을 이용해서 결과값을 인코딩해주면 되겠지요?
curl 'http://www.test.ac.kr/uni.aspx?idx=178' | iconv -c -f euc-kr -t utf-8
그럼 정상적으로 한글이 출력되는것을 볼 수 있습니다.
<label class="hide" for="se">관련사이트 바로가기</label>
<select id="se" name="se">
<option value="">관련사이트 바로가기</option>
</select>
<input type="image" src="/common/images/btn/footer_move.gif" alt="이동" id="btn" />
'Server' 카테고리의 다른 글
Reverse RDP (0) | 2015.09.24 |
---|---|
Intel S3420GP Datasheet (0) | 2015.08.16 |
Set Throttling Mode(CLTT,OLTT)? (0) | 2015.08.01 |
리눅스/유닉스/OSX 파일 확장자 변경 (0) | 2015.02.18 |
Upload Directory Exec Control (0) | 2015.01.28 |