koreainvestment / open-trading-api

Korea Investment & Securities Open API Github https://apiportal.koreainvestment.com
402 stars 115 forks source link

'cp949' codec can't decode byte 0xec in position 29: illegal multibyte sequence #19

Open whodelyou opened 1 year ago

whodelyou commented 1 year ago

KOSPI 종목 정보 가져오는 Sample을 Local PC jupyter 노트북에서 실행 시 아래와 같은 에러가 발생합니다.

작업환경 : Windows 11 / VSCode / xxxxx.ipynb (Jupyter Notebook) venv : python 3.9 64bit

Error msg : UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 29: illegal multibyte sequence

스크린샷 2023-03-27 231732

whodelyou commented 1 year ago

encoding을 utf-8로 변환 시 조회가 가능합니다.