From eecdcc93bf16f2a0b88fbcb4a5276f038d414c0b Mon Sep 17 00:00:00 2001 From: Phyks Date: Tue, 13 May 2014 15:21:00 +0200 Subject: [PATCH] Utf-8 + README updated --- README.md | 16 +++++++++++++--- main.py | 2 +- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index be2386b..11e0735 100644 --- a/README.md +++ b/README.md @@ -32,11 +32,21 @@ Should be almost working and usable now, although still to be considered as **ex * Import - * working : all (file / tags / bibtex modification / bibtex retrieval / remove watermark pages) + * working: all (file / tags / bibtex modification / bibtex retrieval / remove watermark pages) * Download - * working : all + * working: all * Delete - * working : all (by file and by id) + * working: all (by file and by id) +* List + * TODO +* Search + * TODO +* Open + * working: all +* Resync + * Testing +* Update + * Testing ## Installation diff --git a/main.py b/main.py index 9d21053..4249b90 100755 --- a/main.py +++ b/main.py @@ -245,7 +245,7 @@ def downloadFile(url, filetype, manual): def openFile(ident): try: with open(params.folder+'index.bib', 'r', encoding='utf-8') as fh: - bibtex = BibTexParser(fh.read()) + bibtex = BibTexParser(fh.read().encode('utf-8')) bibtex = bibtex.get_entry_dict() except: tools.warning("Unable to open index file.")