Matthias Urlichs wrote: > > Playing around with xml.dom.minidom, I noticed that this beast is > perfectly able to read HTML which it can't print: > > >>> import xml.dom.minidom as md > >>> d=md.parseString("<foo>bߐ</foo>")) > >>> d.writexml(sys.stdout) > ... > UnicodeError: ASCII encoding error: ordinal not in range(128) "sys.stdout" doesn't know what to do with Unicode. Wrap it in an encoder (usually UTF-8) using the codecs module. I agree that this is a usability problem but it isn't a bug and I think you've mischaracterized the source of the problem. Paul Prescod
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4