<div>Hey,</div><div><br></div><div>I am trying to store some data that I'm scraping with Scrapy in MySQL, usually I use Postgres however not available this time due to client requirements.</div><div><br></div><div>The error I'm receiving is:</div><div><div>File "/Library/Python/2.7/site-packages/pony/orm/core.py", line 1263, in check</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>    else: return converter.validate(val)</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>  File "/Library/Python/2.7/site-packages/pony/orm/dbapiprovider.py", line 387, in validate</div><div><span class="Apple-tab-span" style="white-space:pre">   </span>    elif isinstance(val, unicode): val = val.encode(converter.encoding)</div><div><span class="Apple-tab-span" style="white-space:pre">    </span>exceptions.UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2019' in position 1001: ordinal not in range(256)</div></div><div><br></div><div>However I'm unsure why it's trying to encode as latin-1, I've tried everything to try and get rid of it:</div><div><br></div><div><ul><li>My MYSQL database and columns are set to UTF8</li><li>I have the following at the top of my python file:</li></ul></div><div><br></div><div>import sys</div><div><div>reload(sys);</div><div>sys.setdefaultencoding("utf8")</div></div><div><br></div><div><ul><li>I'm creating my DB connection like this:</li></ul><div><div>db = Database('mysql', db="xxx", user="root", charset='utf8', use_unicode=True)</div></div></div><div><br></div><div>Was wondering if you had any insight on the issue?</div><div><br></div><div>Thanks,</div><div><div>-- </div><div>Jake Austwick</div><div></div><div></div></div>