I have string somestr = '‘something’' and I want to insert it to sql via Python using MySQLdb
I am already using somestr.encode('latin-1', 'ignore') to get latin-1 from the text but it always give following error
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2018'
Anyone know how to solve this issue?