From 17dafdbba06ed40f843ae5167f8563e427235488 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 10 Feb 2024 13:02:53 +0100 Subject: [PATCH] fix #59 change input encoding from utf8 to ansi --- README.md | 1 + pyLSV2/__init__.py | 2 +- pyLSV2/table_reader.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 330ff71..1b15ba9 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ - Baptou88 - Md-aliy7 - npalmerDNX + - Andreas-strg ## Usage See [lsv2_demo.py](https://github.com/drunsinn/pyLSV2/blob/master/pyLSV2/demos/lsv2_demo.py) for a demonstration of some of the functions. diff --git a/pyLSV2/__init__.py b/pyLSV2/__init__.py index af0e523..67c3eef 100644 --- a/pyLSV2/__init__.py +++ b/pyLSV2/__init__.py @@ -8,7 +8,7 @@ from .translate_messages import * from .err import * -__version__ = "1.3" +__version__ = "1.3.1" __author__ = "drunsinn" __license__ = "MIT" __email__ = "dr.unsinn@googlemail.com" diff --git a/pyLSV2/table_reader.py b/pyLSV2/table_reader.py index dc505f9..a5077f4 100644 --- a/pyLSV2/table_reader.py +++ b/pyLSV2/table_reader.py @@ -299,7 +299,7 @@ def parse_table(table_path: pathlib.Path) -> "NCTable": raise FileNotFoundError("Could not open file %s" % table_path) try: - with table_file.open(mode="r", encoding="utf-8") as tfp: + with table_file.open(mode="r", encoding="ansi") as tfp: header_line = tfp.readline().strip() logger.debug("Checking line for header: %s", header_line) header = re.match(