원인 : Python은 기본 8bits char를 가정한다. string내부에 2byte character가 있는경우 에러 발생한다.

해결 : .encode("ENCODE_TYPE") 를 스트링 뒤에 붙이면 된다.
   (ex) fpout.write( str.encode("utf-8") ) 


출처 : http://blog.finsternis.me/m/post/556

'Python > 환경 설정' 카테고리의 다른 글

[Python] virtualenv 환경 설정  (0) 2015.02.21
ipython notebook과 pycharm  (0) 2015.02.14
파이썬에서 한글 주석 사용하기  (0) 2015.02.14
ipython notebook 설치 방법  (0) 2015.02.08
Posted by 공놀이나하여보세
,