unicode, , , .
CSV , , utf-8, .
import codecs
content = response.read()
html = codecs.decode(content, 'utf-8')
unicode utf-8 , . codecs.open, , . .
g = codecs.open('fencing_medalists.csv', 'wb', encoding='utf-8')
:
theText = td.find(text=True)
if theText is not None:
g.write(unicode(theText))
: BeautifulSoup, , Unicode, codecs.decode.