diff --git a/vdirsyncer/storage/filesystem.py b/vdirsyncer/storage/filesystem.py index d6e11d3..ec9c4f2 100644 --- a/vdirsyncer/storage/filesystem.py +++ b/vdirsyncer/storage/filesystem.py @@ -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):