I'm trying to work with orgnode.py (from here) to parse org files. These files are English/Persian and using file -i
it seems they are utf-8 encoded. But I recieve this error when use makelist function (which itself uses codec.open with utf-8):
>>> Orgnode.makelist("toread.org")
[** [[http://www.apa.org/helpcenter/sexual-orientation.aspx][Sexual orientation, homosexuality and bisexuality]] :ToRead:
Added:[2013-11-06 Wed]
, ** [[http://stackoverflow.com/questions/11384516/how-to-make-all-org-files-under-a-folder-added-in-agenda-list-automatically][emacs - How to make all org-files under a folder added in agenda-list automatically? - Stack Overflow]]
(setq org-agenda-text-search-extra-files '(agenda-archives "~/org/subdir/textfile1.txt" "~/org/subdir/textfile1.txt"))
Added:[2013-07-23 Tue]
, Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't encode characters in position 63-66: ordinal not in range(128)
The function returns a list of org headings, but instead of last item (which is written in Persian) it shows the error. Any suggestion how can I deal with this error?