리눅스 iconv

1 개념[ | ]

ICONV
/usr/bin/iconv
파일의 인코딩을 변경
  • 파일 인코딩을 다른 것으로 변경하는 도구
  • 소속 패키지: (CentOS) glibc-common, (우분투) libc-bin
iconv -f encoding [-t encoding] [inputfile] ...

2 예시[ | ]

  • UTF-8 파일 포멧을 UTF-16 파일 포멧으로 변경
john@zetaknow:~$ vi a.php
john@zetaknow:~$ file a.txt
a.txt: UTF-8 Unicode text
john@zetaknow:~$ iconv -f UTF-8 -t UTF-16 a.txt -o b.txt
john@zetaknow:~$ file b.txt
b.txt: Little-endian UTF-16 Unicode text, with no line terminators

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}