프로그램 사용/iconv() & glibc
linux iconv 테스트
구차니
2010. 4. 20. 17:18
iconv 유틸리티를 이용해서 일단 변환 테스트.
-f=UTF-8 (UTF-8 문서를)
-t=UNICODE (유니코드로 변환)
-o result.txt (result.txt로 출력)
$ iconv -f=UTF8 -t=UNICODE test.str -o result.txt
-f=UTF-8 (UTF-8 문서를)
-t=UNICODE (유니코드로 변환)
-o result.txt (result.txt로 출력)
$ cat test.str Hello world $ vi test.str 1 Hello world |
$ iconv -f=UTF8 -t=UNICODE test.str -o result.txt
$ cat result.txt ▒▒Hello world $ vi result.txt 1 ÿþH^@e^@l^@l^@o^@ ^@w^@o^@r^@l^@d^@ 2 ^@ |