From baee6916e731c1b8536b85cfef518a592c5e648c Mon Sep 17 00:00:00 2001 From: Carl Hofmeister Date: Sun, 31 Dec 2017 14:01:47 -0600 Subject: [PATCH] Fix string decode error when importing csv files --- anki/importing/csvfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/importing/csvfile.py b/anki/importing/csvfile.py index 0a8928628..7c7ae6fc9 100644 --- a/anki/importing/csvfile.py +++ b/anki/importing/csvfile.py @@ -74,7 +74,7 @@ class TextImporter(NoteImporter): self.data = [sub(x)+"\n" for x in self.data.split("\n") if sub(x) != "__comment"] if self.data: if self.data[0].startswith("tags:"): - tags = str(self.data[0][5:], "utf8").strip() + tags = str(self.data[0][5:]).strip() self.tagsToAdd = tags.split(" ") del self.data[0] self.updateDelimiter()