VC Code 터미널 기본 코드 페이지 바꾸기
- Visual Studio Code default code page auto change to UTF-8
- Electron console.log , Terminal out, 한글 폰드 출력이 깨질때, 한글 깨짐 현상 해결 방법
- cmd.exe 터미널 로케(locale) 변경
- 방법 1 : VS Code 의 설정파일 수정
%UserProfile%\AppData\Roaming\Code\User\settings.json
- 다음 내용을 추가
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"args": ["-NoExit", "-Command ", "[Console]::OutputEncoding = [System.Text.Encoding]::UTF8"]
},
"cmd": {
"path": "C:\\WINDOWS\\System32\\cmd.exe",
"args":["/K", "chcp", "65001"]
},
"Git Bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe"
},
},
"terminal.integrated.defaultProfile.windows": "cmd",
//-------------------------------------
참고
windows git bash 한글 유니코드 utf8로 설정하는 방법
//-----------------------------------------------------------------------------
// 참고만
- 방법2 : 레지스트리 수정
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]
"Autorun"="chcp 65001"
- 실행할때 마다 출력되는 것이 부담된다면 "@chcp 65001>nul"
- 방법3: 비추 (부팅이 안된다는 분도 있음)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage
OEMCP : 65001 (원래값 = 949 (한글))
- 윈도우 재부팅 필요
- TreeDBNotes 에서 텍스트로 붙여넣기 글자 깨짐
- FastStrone Image Viewer 에서 분류 글자 깨짐
//-------------------
// 참고
https://superuser.com/questions/269818/change-default-code-page-of-windows-console-to-utf-8
- 다음은 소용없었음
REG ADD HKCU\Console\%SystemRoot^%_system32_cmd.exe /v CodePage /t REG_DWORD /d 65001
Active code page : 65001
//
Windows console default code page change to utf-8
euckr cp949 949
utf-8 65001