mirror of
https://github.com/ankitects/anki.git
synced 2025-11-14 16:47:12 -05:00
should use utf8 when pulled from sqlite, not the system encoding
This commit is contained in:
parent
9490d7e6cf
commit
68817218a4
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ create table if not exists config (conf text not null);
|
||||||
def recentDecks(self):
|
def recentDecks(self):
|
||||||
"Return a list of paths to remembered decks."
|
"Return a list of paths to remembered decks."
|
||||||
# have to convert to unicode manually because of the text factory
|
# have to convert to unicode manually because of the text factory
|
||||||
return [unicode(d[0]) for d in
|
return [unicode(d[0], 'utf8') for d in
|
||||||
self.db.execute("select path from decks")]
|
self.db.execute("select path from decks")]
|
||||||
|
|
||||||
def addRecentDeck(self, path):
|
def addRecentDeck(self, path):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue