보안 및 개발/Infra & Cloud
인코딩 문제
CH@3M
2020. 10. 23. 12:09
unix2dos.exe:유닉스 파일 -> 윈도우파일
sourceforge.net/projects/dos2unix/
dos2unix
Download dos2unix for free. Dos2Unix / Unix2Dos - Text file format converters. dos2unix includes utilities to convert text files with DOS or MAC line breaks to Unix line breaks and vice versa. It also includes conversion of UTF-16 to UTF-8.
sourceforge.net
RedUTF8.exe : UTF-8 -> ANSI
다운로드 링크 : japdaguri.tistory.com/33
툴로 해결이 안될 경우, powershell 스크립트를 이용하여 간단하게 변경가능
encoding.ps
foreach($filename in ls -name DIR/*.txt) { \
get-content DIR/$filename | \
out-file -encoding utf8 -filepath DIR2/$filename \
}
DIR 디렉토리의 *.txt 파일을 읽어들여 utf8로 변환한 다음 DIR2 디렉토리에 동일한 파일명으로 저장
반응형