[twill] html entities and latin-1 problem

Terry Peppers peppers at gmail.com
Fri Mar 10 06:39:37 PST 2006

Michelle -

A couple of weeks back I had encountered the same exact problem with the
'latin-1' v. 'utf-8' encoding issue. I posted the issue to the list and I
caught Titus @ a bad time since he was @ PyCon. So after some digging (I
didn't even see the post from Gabor about how to correct this), I came to
the same conclusion as Gabor. At first I had tried to 'monkeypatch' a fix
into my twill script like this:

import twill.other_packages.mechanize._html

def form_parser_args(
     return get_args(locals())


Unfortunately that didn't work and I was left to editing 'mechanize's'
_html.py file which did fix my problem. I guess my remaining questions are:

1. Anyone have an idea as to why my 'monkeypatch' doesn't work?
2. Is it correct to say that this is more of a 'mechanize' issue than a
'twill' issue? And if so, what can we do to correct the problem?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.idyll.org/pipermail/twill/attachments/20060310/8b531334/attachment.html

More information about the twill mailing list