[TxMt] Markdown bundle unicode problem?

Piero D'Ancona pierodancona at gmail.com
Tue Oct 23 16:03:09 UTC 2007


Today I tried to use the nice Markdown Bundle, I
drag-and-dropped an html file on an open window
and here is what I got:

Traceback (most recent call last):
  File "/Library/Application Support/TextMate/Bundles/Markdown.tmbundle
/Support/bin/html2text.py", 
line 395, in <module>
    html2text_file(data)
  File "/Library/Application Support/TextMate/Bundles/Markdown.tmbundle
/Support/bin/html2text.py", 
line 379, in html2text_file
    h.feed(html)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/sgmllib.py", line 99, in feed
    self.goahead(0)
  File "/Library/Frameworks/Python.framework/Versions/2.5/lib
/python2.5/sgmllib.py", line 188, in 
goahead
    self.handle_entityref(name)
  File "/Library/Application 
Support/TextMate/Bundles/Markdown.tmbundle/Support/bin/html2text.py", 
line 168, in handle_entityref
    self.o(entityref(c))
  File "/Library/Application 
Support/TextMate/Bundles/Markdown.tmbundle/Support/bin/html2text.py", 
line 368, in o
    self.out(data)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc0' 
in position 0: ordinal not in range(128)

Regards,
Piero




More information about the textmate mailing list