Link: http://stackoverflow.com/questions/3224268/python-unicode-encode-error?rq=1Really useful when trying to create a log from unicode data. Try to encode your unicode string as ascii first: unicodeData.encode('ascii', 'ignore') the 'ignore' part will tell it to just skip those characters Tags: pythontips