mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-04 10:35:51 +00:00
Use specified encoding for filesystem storage
This commit is contained in:
parent
bd599d4e63
commit
d3e4a52376
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ class FilesystemStorage(Storage):
|
|||
raise exceptions.WrongEtagError(etag, actual_etag)
|
||||
|
||||
with open(fpath, 'wb') as f:
|
||||
f.write(item.raw.encode('utf-8'))
|
||||
f.write(item.raw.encode(self.encoding))
|
||||
return _get_etag(fpath)
|
||||
|
||||
def delete(self, href, etag):
|
||||
|
|
|
|||
Loading…
Reference in a new issue