feat: 楼宇查询连接信息本地保存并默认 GBK 编码

This commit is contained in:
nixevol
2026-09-17 09:32:34 +08:00
parent 48e68469ad
commit bbff3f7b5f
5 changed files with 45 additions and 17 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class InteriorPointTest(unittest.TestCase):
path = Path(script.INPUT_CSV)
if not path.is_file():
self.skipTest("源文件不存在")
with path.open(encoding=script.INPUT_ENCODING, newline="") as source:
with path.open(encoding="utf-8-sig", newline="") as source: # 当前源文件为 UTF-8 BOM
reader = csv.DictReader(source)
for _, row in zip(range(200), reader):
geometry = wkt.loads(row["WKT"])