mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-27 12:24:11 +02:00
Open CSV in binary mode, refs #280
This commit is contained in:
parent
7684bbf097
commit
93594ce15b
1 changed files with 1 additions and 1 deletions
|
|
@ -1181,7 +1181,7 @@ def memory(
|
||||||
else:
|
else:
|
||||||
csv_path = pathlib.Path(path)
|
csv_path = pathlib.Path(path)
|
||||||
csv_table = csv_path.stem
|
csv_table = csv_path.stem
|
||||||
csv_fp = csv_path.open()
|
csv_fp = csv_path.open("rb")
|
||||||
|
|
||||||
encoding = encoding or "utf-8-sig"
|
encoding = encoding or "utf-8-sig"
|
||||||
decoded_fp = io.TextIOWrapper(csv_fp, encoding=encoding)
|
decoded_fp = io.TextIOWrapper(csv_fp, encoding=encoding)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue