mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
encode media filename to unicode first
This commit is contained in:
parent
af52a50547
commit
634362dc76
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ values (:id, :filename, :size, :created, :originalPath,
|
|||
filename=newBase,
|
||||
size=newSize,
|
||||
created=time.time(),
|
||||
originalPath=path,
|
||||
originalPath=unicode(
|
||||
path, sys.getfilesystemencoding()),
|
||||
description=os.path.splitext(
|
||||
os.path.basename(path))[0])
|
||||
return newBase
|
||||
|
|
Loading…
Reference in a new issue