Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 95069db

Browse files
committed
Merge branch 'master' of https://github.com/josswright/geeknote into 2.0.15
2 parents 8b1327a + f07723a commit 95069db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geeknote/gnsync.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def _create_file(self, note):
380380
binaryHash = binascii.unhexlify(imageInfo['hash'])
381381
GeekNote(sleepOnRateLimit=self.sleep_on_ratelimit).saveMedia(note.guid, binaryHash, filename)
382382

383-
content = Editor.ENMLtoText(note.content, self.imageOptions)
383+
content = Editor.ENMLtoText(note.content.encode('utf-8'), self.imageOptions)
384384
path = os.path.join(self.path, escaped_title + self.extension)
385385
open(path, "w").write(content)
386386
updated_seconds = note.updated / 1000.0
@@ -461,7 +461,7 @@ def _get_notes(self):
461461
"""
462462
Get notes from evernote.
463463
"""
464-
keywords = 'notebook:"{0}"'.format(tools.strip(self.notebook_name))
464+
keywords = 'notebook:"{0}"'.format(tools.strip(self.notebook_name.encode('utf-8')))
465465
return GeekNote(sleepOnRateLimit=self.sleep_on_ratelimit).findNotes(keywords, EDAM_USER_NOTES_MAX).notes
466466

467467

0 commit comments

Comments
 (0)