- Visual Studio Code default code page auto change to UTF-8

    - Electron console.log , Terminal out, 한글 출력이 깨질때

 

    - 방법 1 : VS Code 의 설정파일 수정

%UserProfile%\AppData\Roaming\Code\User\settings.json

 

        - 다음 내용을 추가

    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",

    "terminal.integrated.shellArgs.windows": ["/K", "chcp", "65001"]



    - 방법2 : 레지스트리 수정

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor]

"Autorun"="chcp 65001"



    - 방법3: 비추 (부팅이 안된다는 분도 있음)

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\CodePage

    OEMCP : 65001

            - 윈도우 재부팅 필요



 

//-------------------

// 참고

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



Posted by 코덴스

댓글을 달아 주세요