fix importing non-latin tags

This commit is contained in:
Damien Elmes 2012-04-06 19:01:05 +09:00
parent c1242740ac
commit 37b89cdac3

View file

@ -70,7 +70,8 @@ class TextImporter(NoteImporter):
self.data = [sub(x)+"\n" for x in self.data.split("\n") if sub(x)] self.data = [sub(x)+"\n" for x in self.data.split("\n") if sub(x)]
if self.data: if self.data:
if self.data[0].startswith("tags:"): if self.data[0].startswith("tags:"):
self.tagsToAdd = self.data[0][5:].split(" ") tags = unicode(self.data[0][5:], "utf8")
self.tagsToAdd = tags.split(" ")
del self.data[0] del self.data[0]
self.updateDelimiter() self.updateDelimiter()
if not self.dialect and not self.delimiter: if not self.dialect and not self.delimiter: