From: Yuri T. <qar...@gm...> - 2007-06-15 13:18:20
|
1.6b rc2 expects to get actual Unicode strings as arguments. So, you should get rid of .econde('utf-8') in your example: text = u'\r\n\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41' print markdown.markdown(text) If you read UTF8-encoded text from a file manually, you will need to decode it. Alternatively, there is a function markdownFromFile() that accepts an input file path and the encoding, which will decode the file for you. BTW, for languages written right-to-left 1.6b rc2 now inserts dir="rtl" attributes where necessary. - yuri -- Yuri Takhteyev UC Berkeley School of Information http://www.freewisdom.org/ |