텍스트 인코딩 변경

Edit 모드에서 편집기 도구 모음(4)에 현재 파일의 파일 인코딩을 표시하려면 환경설정 > Text Editor > Display > Display file encoding 으로 이동합니다.

텍스트 인코딩을 변경하려면 도구 모음에서 인코딩을 선택한 다음 Text Encoding 대화 상자에서 새 인코딩을 선택합니다:

선택한 인코딩으로 파일을 다시 로드하려면 Reload with Encoding 을 선택합니다.
새 인코딩으로 파일을 저장하려면 Save with Encoding 으로 이동합니다.
기본 인코딩 설정하기
기본 파일 인코딩을 정의하려면 환경설정 > Text Editor > Behavior 을 선택한 다음 Default encoding 에서 적절한 옵션을 선택합니다.

Qt에서는 UTF-8 인코딩된 소스 파일이 필요하므로 기본 인코딩은 UTF-8 로 설정되어 있습니다.
UTF-8로 인코딩되지 않은 파일을 편집하려고 하면 다음과 같은 오류 메시지가 표시됩니다: Error: Could not decode "filename" with "UTF-8"-encoding. Editing not possible.
이 문제를 해결하려면 파일 변환 도구를 사용하여 파일 인코딩을 UTF-8로 변환하세요. 그렇지 않으면 문자열 상수를 QString 로 변환하는 것이 예상대로 작동하지 않을 수 있습니다.
Qt 애플리케이션을 개발하지 않는 경우 다른 인코딩 옵션을 기본 인코딩으로 설정할 수 있습니다. 시스템에서 사용하는 파일 인코딩을 사용하려면 System 옵션을 선택합니다.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.