Tue, Mar 20, 2007 at 03:26:43PM -0000:  eros mangled some bits into this 
alignment:
> 2007-03-20 12:48:11 UTC jeremiah said
> >> Looks like this issue has been around for a while, is there a
> >> workaround?
> >
> >Don't use python.
> 
> Well that's certainly a good idea,

Sorry, I was being glib. =)

> but for now I'm stuck with this
> frekking script. As an extremely unhealthy solution I hacked
> /usr/lib/python2.4/site-packages/MySQLdb/cursors.py commenting line 146:
> 
> #        query = query.encode(charset)
> 
> Now it works (or at least it appears to work).

I am not sure where the problem lies, you may want to look at debian's
BTS to see if there is a similar problem or try to find out who the 
Ubuntu package maintainer is for the python-mysql package. 

I tried to fix this as well but it was nearly impossible and there is 
little or no help from upstream. We eventually left python for php.

Good luck!

        Jeremiah
 
> -- 
> UnicodeDecodeError: 'ascii' codec can't decode certain bytes 
> https://launchpad.net/bugs/57067

-- 
UnicodeDecodeError: 'ascii' codec can't decode certain bytes 
https://launchpad.net/bugs/57067

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to