이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 9. Advanced Topics
9.1. Using the iconv tool 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The iconv tool converts the encoding of characters in a file from one coded character set to another. The result is written to standard output unless otherwise specified by the
--output
option. When doing conversions it is always a good idea to backup ones original files first.
The following are some useful examples of using the
See the iconv (1) manpage for more details.
iconv
tool.
- List character-set encoding names:
iconv --list
iconv --list
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Convert ISO8859-1 (legacy Western European) content to utf-8In the above example, the oldfile is encoded in ISO8859-1, while the "newfile" will be encoded in UTF-8.
iconv -f ISO_8859-1 -t UTF-8 oldfile > newfile
iconv -f ISO_8859-1 -t UTF-8 oldfile > newfile
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Similarly to convert EUCJP content to UTF-8
iconv -f EUCJP -t UTF-8 oldfile > newfile
iconv -f EUCJP -t UTF-8 oldfile > newfile
Copy to Clipboard Copied! Toggle word wrap Toggle overflow