specify encoding for uncompressed files in kompress.kopen
This commit is contained in:
parent
4cd6df86cf
commit
ab61a95701
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ def kopen(path: PathIsh, *args, **kwargs): # TODO is it bytes stream??
|
||||||
elif suf in {'.zstd'}:
|
elif suf in {'.zstd'}:
|
||||||
return _zstd_open(pp)
|
return _zstd_open(pp)
|
||||||
else:
|
else:
|
||||||
|
kwargs['encoding'] = 'utf-8'
|
||||||
return pp.open(*args, **kwargs)
|
return pp.open(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue