mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
apsw wants unicode
This commit is contained in:
parent
090529c4d7
commit
2a72a4dc70
1 changed files with 1 additions and 1 deletions
|
@ -2795,7 +2795,7 @@ class DeckStorage(object):
|
||||||
"Attach to a file, initializing DB"
|
"Attach to a file, initializing DB"
|
||||||
if apsw:
|
if apsw:
|
||||||
import apsw
|
import apsw
|
||||||
acon = apsw.Connection(path)
|
acon = apsw.Connection(unicode(path, "utf-8"))
|
||||||
def connect():
|
def connect():
|
||||||
pycon = sqlite.connect(acon)
|
pycon = sqlite.connect(acon)
|
||||||
return pycon
|
return pycon
|
||||||
|
|
Loading…
Reference in a new issue