1
나는 파이썬 스크립트를 실행하고 난파이썬 아스키 인코딩 문제
sql = 'insert into posts(msg_id, msg_text, msg_date) values("{0}", "{1}", "{2}")'.format(msg['id'], text.encode('utf-8'), msg['datime'])
UnicodeEncodeError: 'ascii' codec can't encode characters in position 25-31: ordinal not in range(128)
어떻게 내가이 오류를 해결하거나 아니면 예외로 잡은 다음 오류가? 어떤 아이디어?
여기서 '텍스트'값은 무엇입니까? –