본문 바로가기

ERROR!

MySQL csv 오류 | Unhandled exception: 'cp949' codec can't decode 해결법

MySQL csv 오류 | Unhandled exception: 'cp949' codec can't decode 해결법

MySQL에 csv 파일을 import 해야 하는데...

에러가 난다...

에흑흑

 

전에도 똑같은 오류를 겪었던 기억이 나...

 

한글의 경우 csv 파일이 cp949인 경우가 많은데 mySQL에선 지원 안해줘서 그렇다.

cp949를 utf-8로 바꿔야 됨.

 

이거 관련해서 구글링하면 정보가 많이 나온다.

 

메모장을 이용해서 utf-8로 바꿔라

mysql 설정을 바꿔라

 

등등...

 

난 그냥 csv 파일을 json으로 바꿔서 해결했다.

여기서함

 

반응형

 

 

CSVJSON - CSVJSON

JSON JSON stands for JavaScript Object Notation and has become the defacto computer format readable by humans to store structured data. From APIs to configuration files, JSON is now everywhere.

csvjson.com

 

그리고나서 다시 import하니까 해결했따

휴...

잘들어갔따

 

휴... 살았다.