반응형

보통은 CP850 인코딩 방식을 사용하므로 영어가 아닌 언어를 사용할때는 그에맞는 방식을 추가해주어야 한다 함

따라서 영어가 아닌 언어를 쓸때는 다른 코드페이지로 변경해주어야한다

 

※코드페이지 란

코드 페이지(code page)는 특정한 문자 인코딩 테이블을 위해 쓰이는 전통적인 IBM 용어이다.
문자 인코딩 테이블 부터 255까지의 정수를 표현하는 단일 옥텟(octet, 바이트)이라고 불리는 일련의 비트들이 특정한 문자와 결합하여 표화(mapping)한 것이다.
IBM과 마이크로소프트는 코드 페이지를 문자열 집합(charset)에 자주 할당한다.

 

437 원래의 IBM PC 코드 페이지
737 그리스어
850 "다중 언어 (라틴 1)" (서양 유럽 언어) 
852 "슬라브어 (라틴 2)" (동유럽 언어) 
855 키릴 자모 알파벳 
857 튀르키예어 
858 "다중 언어" - 유로 기호 
860 포르투갈어 
861 아이슬란드어 
863 프랑스 캐나다어 
865 북유럽어 
862 히브리어 
866 키릴 자모 알파벳 
869 그리스어 
10000 매킨토시 로마어 인코딩 (몇몇의 다른 맥 문자열 세트를 따름) 
10007 매킨토시 키릴 자모 인코딩 
10029 매킨토시 중앙유럽어 인코딩
932 일본어 지원 
936  GBK 중국어 간체자 지원 
949 한국어 지원 
950 중국어 번체자 (대만) 지원 
1200 UCS-2LE 유니코드 little-endian 
1201 UCS-2BE 유니코드 big-endian 
65000 UTF-7 유니코드 
65001 UTF-8 유니코드 
ASMO449+ 아랍어 지원 
MIK 불가리아어, 러시아어 지원

 

 

한글 utf-8 인코딩 방식 기준으로 65001로 변경하여 사용

 

chcp 65001

 

 

 

 

참고 : https://ss64.com/nt/chcp.html

 

CHCP - Change Code Page - Windows CMD - SS64.com

Change the active console Code Page. The default code page is determined by the Windows Locale. This command is rarely required as most GUI programs and PowerShell now support Unicode. When working with characters outside the ASCII range of 0-127, such as

ss64.com

https://stackoverflow.com/questions/1427796/batch-file-encoding

 

Batch file encoding

I would like to deal with filename containing strange characters, like the French é. Everything is working fine in the shell: C:\somedir\>ren -hélice hélice I know if I put this line in a .ba...

stackoverflow.com

https://ss64.com/nt/chcp.html

 

CHCP - Change Code Page - Windows CMD - SS64.com

Change the active console Code Page. The default code page is determined by the Windows Locale. This command is rarely required as most GUI programs and PowerShell now support Unicode. When working with characters outside the ASCII range of 0-127, such as

ss64.com

 

반응형

+ Recent posts