Hello,
I am am using a python script that fetches raw data from the web. However, while processing information I get the following error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 17: ordinal not in range(128)
It's actually the sql escape method that fails. As far as I understand, the charset doesn't support over \u128. If that's the case, is there any way to extend it? or does anyone know another solution.
I use the SQL escape method part of the MySQLdb object.
I'm quite a newbie at this thing
Thanks in advance!
I am am using a python script that fetches raw data from the web. However, while processing information I get the following error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 17: ordinal not in range(128)
It's actually the sql escape method that fails. As far as I understand, the charset doesn't support over \u128. If that's the case, is there any way to extend it? or does anyone know another solution.
I use the SQL escape method part of the MySQLdb object.
I'm quite a newbie at this thing
Thanks in advance!