시스템/리눅스
[명령어] 파일 문자셋 바꾸기 (iconv)
kid1412
2010. 9. 10. 14:41
728x90
사용법
iconv -f [원래 파일의 문자셋] -t [바꿀 파일의 문자셋] filename > filename.new
ex)
iconv -f euc-kr -t utf-8 test.txt > test.txt.new
mv test.txt.new test.txt
바꿀 파일과 바뀐 파일의 명칭이 같으면 iconv 가 실행이 안되었던거 같습니다.
iconv -f [원래 파일의 문자셋] -t [바꿀 파일의 문자셋] filename > filename.new
ex)
iconv -f euc-kr -t utf-8 test.txt > test.txt.new
mv test.txt.new test.txt
바꿀 파일과 바뀐 파일의 명칭이 같으면 iconv 가 실행이 안되었던거 같습니다.