By rprice , 29 December 2014 Link http://stackoverflow.com/questions/3224268/python-unicode-encode-error?rq=1 Really 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 python tips