I'm still working through the documentation on this one, but I found a slightly odd case. <br><br>-----<br>#!/usr/bin/python<br><br>from twill import get_browser<br>from twill.commands import debug, go, follow, back, find, showforms
<br><br>url = &quot;<a href="http://swordstyle.com/test/index.php">http://swordstyle.com/test/index.php</a>&quot;<br><br>b = get_browser()<br><br>b.go(url)<br><br>showforms()<br>-----<br><br>This ends up throwing a unexpected response:
<br><br>-----<br>Traceback (most recent call last):<br>&nbsp; File &quot;test_unicode.py&quot;, line 13, in ?<br>&nbsp;&nbsp;&nbsp; showforms()<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-0.8.3-py2.3.egg/twill/commands.py&quot;, line 326, in showforms
<br>&nbsp;&nbsp;&nbsp; browser.showforms()<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-0.8.3-py2.3.egg/twill/browser.py&quot;, line 223, in showforms<br>&nbsp;&nbsp;&nbsp; for n, f in enumerate(self._browser.forms()):<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-
0.8.3-py2.3.egg/twill/other_packages/mechanize/_mechanize.py&quot;, line 244, in forms<br>&nbsp;&nbsp;&nbsp; return self._factory.forms()<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-0.8.3-py2.3.egg/twill/utils.py&quot;, line 307, in forms
<br>&nbsp;&nbsp;&nbsp; self._forms = parse_fn(response, self._encoding)<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-0.8.3-py2.3.egg/twill/other_packages/mechanize/_html.py&quot;, line 218, in parse_response<br>&nbsp;&nbsp;&nbsp; ignore_errors=
self.ignore_errors<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-0.8.3-py2.3.egg/twill/other_packages/ClientForm.py&quot;, line 870, in ParseResponse<br>&nbsp;&nbsp;&nbsp; encoding,<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-
0.8.3-py2.3.egg/twill/other_packages/ClientForm.py&quot;, line 906, in ParseFile<br>&nbsp;&nbsp;&nbsp; fp.feed(ch)<br>&nbsp; File &quot;/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sgmllib.py&quot;, line 95, in feed
<br>&nbsp;&nbsp;&nbsp; self.goahead(0)<br>&nbsp; File &quot;/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/sgmllib.py&quot;, line 184, in goahead<br>&nbsp;&nbsp;&nbsp; self.handle_entityref(name)<br>&nbsp; File &quot;/Library/Python/2.3/site-packages/twill-
0.8.3-py2.3.egg/twill/other_packages/ClientForm.py&quot;, line 667, in handle_entityref<br>&nbsp;&nbsp;&nbsp; self.handle_data(table[fullname].encode(self._encoding))<br>UnicodeEncodeError: 'latin-1' codec can't encode character u'\u2122' in position 0: ordinal not in range(256) 
<br>-----<br><br>Has anyone else run into this problem?<br><br>