nkf 를 이용해 인코딩 확인하기

· 13년 전 · 2031
 
 
test os : 
[root@oracle ~]# lsb_release -id
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
 
 
아래 패키지 설치 
nkf.i386 : A Kanji code conversion filter.
 
[root@oracle ~]# yum -y install nkf
 
 
 
사용법:
 
[root@oracle ~]# nkf --guess file1.c 
ASCII
 
 
[root@oracle ~]# nkf --guess test.txt 
UTF-8
 
 
 -g  --guess       Guess the input code
 
 
 
 
 
|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
Linux 13년 전 조회 1,982
Linux 13년 전 조회 2,221
Linux 13년 전 조회 2,886
Linux 13년 전 조회 2,069
Linux 13년 전 조회 1,999
Linux 13년 전 조회 2,321
Linux 13년 전 조회 2,597
Linux 13년 전 조회 1,740
Linux 13년 전 조회 8,249
Linux 13년 전 조회 1,719
Linux 13년 전 조회 2,215
Linux 13년 전 조회 1,640
Linux 13년 전 조회 1,745
Linux 13년 전 조회 1,893
Linux 13년 전 조회 2,032
Linux 13년 전 조회 2,126
Linux 13년 전 조회 2,439
Linux 13년 전 조회 6,024
Linux 13년 전 조회 1,467
Linux 13년 전 조회 2,328
Linux 13년 전 조회 2,033
JavaScript 13년 전 조회 2,412
Linux 13년 전 조회 1,842
JavaScript 13년 전 조회 3,326
PHP 13년 전 조회 3,818
기타 13년 전 조회 2,763
jQuery 13년 전 조회 5,171
MySQL 13년 전 조회 3,041
PHP 13년 전 조회 2,352
Linux 13년 전 조회 1,811