본문 바로가기

한글4

JetBrains IntelliJ 콘솔로그 한글 깨짐 문제 처리 IDE 한글 셋팅 1. 파일 인코딩 Default 수정 → UTF-8 File - Settings - Editor - File Encodings Global Encoding, Project Encoding, Default Encoding for properties files 모두 UTF-8로 변경 2. VM Options 수정 Help - Edit Custom VM Options -Xmx2048m -Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 수정 후 재기동 2023. 6. 23.
Gradle에서 JavaDoc생성시 한글깨짐 문제 Gradle에서 JavaDoc 을 실행하여 Springboot 프로젝트를 문서화하는 과정에서 아래의 오류 발생 .. 생략 .. C:\Dev\restapi\src\main\java\com\example\restapi\dto\requestDTO.java:51: error: unmappable character (0xEC) for encoding x-windows-949 @ApiModelProperty(notes = "?쟾?넀?슏?닔", example = "0", dataType = "number") 100 errors > Task :javadoc FAILED FAILURE: Build failed with an exception. 해결과정 1. 한글을 포함한 Java 코드를 EUC-KR로 변경 후 JavaD.. 2023. 3. 17.
Notebook에서 matplotlib 한글 폰트 깨짐 문제 해결 Matplotlib 한글 폰트 깨짐 문제 확인 쥬피터 노트북에서 matplotlib으로 한글 출력 다음과 같이 깨져 보인다. 사용가능 폰트 리스트 확인 import matplotlib.font_manager as fm font_list = [f.name for f in fm.fontManager.ttflist] print(font_list) 📌 Windows, MacOs 의 설치 폰트가 다르므로, 위 폰트 리스트에 있는 폰트를 사용한다. Matplotlib 폰트 적용 import matplotlib.pyplot as plt # plt.rc('font', family='Malgun Gothic') # For windows plt.rc('font', family='AppleGothic') # For MacO.. 2022. 11. 2.
Python3, url 인코딩하는 이유, 인코딩/디코딩 처리 Python3, url 인코딩하는 이유, 인코딩/디코딩 처리 구글에서 한글로 검색하면 q 파라미터에 한글이 알수없는 영문+숫자 조합으로 encode된것을 확인할 수 있다. 왜 url을 인코딩하는가 ? url은 ASCII 문자열을 이용해서만 전송될 수 있다. 즉 ASCII가 아닌 한글, 특수 문자(Unsafe, Reserved)는 두개의 16진수를 사용하는 octet형태로 encode된다. The octet is a unit of digital information in computing and telecommunications that consists of eight bits. The term is often used when the term byte might be ambiguous, as the by.. 2021. 4. 19.